소스 검색

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
 }