We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42b06a3 + 1c0601b commit 30b4d39Copy full SHA for 30b4d39
1 file changed
hg.go
@@ -46,7 +46,7 @@ func NewHgRepo(remote, local string) (*HgRepo, error) {
46
}
47
48
m := hgDetectURL.FindStringSubmatch(string(out))
49
- if m[1] != "" && m[1] != remote {
+ if remote != "" && m[1] != remote {
50
return nil, ErrWrongRemote
51
52
0 commit comments