Support source URLs that contain ? again

Turns out the query part of a source url can be dirrectly after the URL
or after the # fragment. So the branch needs to be stripped too.
This commit is contained in:
morganamilo 2018-07-05 01:55:12 +01:00
parent b46b111c07
commit d627df7288
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

1
vcs.go
View file

@ -98,6 +98,7 @@ func parseSource(source string) (url string, branch string, protocols []string)
}
url = strings.Split(url, "?")[0]
branch = strings.Split(branch, "?")[0]
return
}