From 1c0601bdd3160530894ec0ab9fd67fa7bbb38054 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Wed, 3 Dec 2025 14:42:32 -0500 Subject: [PATCH] Fix issue with hg remote detection Closes #84 Signed-off-by: Matt Farina --- hg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg.go b/hg.go index 11e012c..75a26f5 100644 --- a/hg.go +++ b/hg.go @@ -46,7 +46,7 @@ func NewHgRepo(remote, local string) (*HgRepo, error) { } m := hgDetectURL.FindStringSubmatch(string(out)) - if m[1] != "" && m[1] != remote { + if remote != "" && m[1] != remote { return nil, ErrWrongRemote }