Skip to content

Commit 30b4d39

Browse files
authored
Merge pull request #123 from Masterminds/fix-84
Fix issue with hg remote detection
2 parents 42b06a3 + 1c0601b commit 30b4d39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func NewHgRepo(remote, local string) (*HgRepo, error) {
4646
}
4747

4848
m := hgDetectURL.FindStringSubmatch(string(out))
49-
if m[1] != "" && m[1] != remote {
49+
if remote != "" && m[1] != remote {
5050
return nil, ErrWrongRemote
5151
}
5252

0 commit comments

Comments
 (0)