git: 2c98dc4e5ca9 - main - git-mfc: Give a useful error message if a remote can't be found
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Jul 2026 17:16:25 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f
commit 2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-07-30 17:13:17 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-30 17:13:17 +0000
git-mfc: Give a useful error message if a remote can't be found
---
tools/tools/git/git-mfc | 2 ++
1 file changed, 2 insertions(+)
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