Browse Source

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.
morganamilo 6 years ago
parent
commit
d627df7288
1 changed files with 1 additions and 0 deletions
  1. 1 0
      vcs.go

+ 1 - 0
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
 }