diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-07-30 17:13:17 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-07-30 17:13:17 +0000 |
| commit | 2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f (patch) | |
| tree | 6796bc194d4d921a88de83e3f965bf5fee10beb8 | |
| parent | a7677a680f21e15bd67b29b0948538879320c451 (diff) | |
git-mfc: Give a useful error message if a remote can't be found
| -rwxr-xr-x | tools/tools/git/git-mfc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tools/git/git-mfc b/tools/tools/git/git-mfc index 4b1a9e15cc98..391ef4117ed7 100755 --- a/tools/tools/git/git-mfc +++ b/tools/tools/git/git-mfc @@ -522,6 +522,8 @@ def main(): remote = tracking.remote_name else: err(1, "could not find upstream branch, use --remote") + if remote not in repo.remotes: + err(1, f"remote repository '{remote}' not found") upstream = remote + '/' + origin |
