aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-07-30 17:13:17 +0000
committerMark Johnston <markj@FreeBSD.org>2026-07-30 17:13:17 +0000
commit2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f (patch)
tree6796bc194d4d921a88de83e3f965bf5fee10beb8
parenta7677a680f21e15bd67b29b0948538879320c451 (diff)
git-mfc: Give a useful error message if a remote can't be found
-rwxr-xr-xtools/tools/git/git-mfc2
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