瀏覽代碼

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 年之前
父節點
當前提交
d627df7288
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
 }