aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-08-12 18:28:39 +0000
committerEd Maste <emaste@FreeBSD.org>2026-08-12 18:29:48 +0000
commite15d22609c7d91201cd32b3418c70dc176b95245 (patch)
tree2d9da961cb8fe2ad91fd9690c65188e75d98482f
parentf77fa28422ee455580d44498a4f36c6418e96dd0 (diff)
mfc-candidates: Fix remote repo detection
In my repos the remote "freebsd" is git@gitrepo.freebsd.org:src.git. In particular, the last component is delimited by a colon, not a slash. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D48951
-rwxr-xr-xtools/tools/git/mfc-candidates.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/git/mfc-candidates.lua b/tools/tools/git/mfc-candidates.lua
index cbf7dcb3a257..0bf1a2f636bd 100755
--- a/tools/tools/git/mfc-candidates.lua
+++ b/tools/tools/git/mfc-candidates.lua
@@ -132,7 +132,7 @@ local function main()
local url = exec_command("git remote get-url freebsd 2>/dev/null")
local freebsd_repo
if url and url ~= "" then
- freebsd_repo = string.match(url, "[^/]+$")
+ freebsd_repo = string.match(url, "[^:/]+$")
freebsd_repo = string.gsub(freebsd_repo, "%.git$", "")
end
if freebsd_repo == "ports" or freebsd_repo == "freebsd-ports" then