git: 2c98dc4e5ca9 - main - git-mfc: Give a useful error message if a remote can't be found
Mark Johnston <[email protected]> Thu, 30 Jul 2026 17:16:25 +0000
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a6b86e9.39d7a.36cd621c__24994.7622580052$1785431806$gmane$org@gitrepo.freebsd.org> |
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f commit 2c98dc4e5ca9ac8d8c9d3d874d118ded38957b4f Author: Mark Johnston <[email protected]> AuthorDate: 2026-07-30 17:13:17 +0000 Commit: Mark Johnston <[email protected]> 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