From d627df728801b2e682711ef3d13925003499c86d Mon Sep 17 00:00:00 2001 From: morganamilo Date: Thu, 5 Jul 2018 01:55:12 +0100 Subject: [PATCH] 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. --- vcs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vcs.go b/vcs.go index 7e6d7266..6ede0ff3 100644 --- a/vcs.go +++ b/vcs.go @@ -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 }