Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2026 17:16:25 +0000
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2c98dc4e5ca9 - main - git-mfc: Give a useful error message if a remote can't be found
Message-ID:  <6a6b86e9.39d7a.36cd621c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6b86e9.39d7a.36cd621c>