1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix same issue in api.go

This commit is contained in:
Victor Vieux 2013-07-31 08:01:20 +00:00
parent 73c6d9f135
commit a7068510a5

7
api.go
View file

@ -786,12 +786,7 @@ func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
remoteURL := r.FormValue("remote") remoteURL := r.FormValue("remote")
repoName := r.FormValue("t") repoName := r.FormValue("t")
rawSuppressOutput := r.FormValue("q") rawSuppressOutput := r.FormValue("q")
tag := "" repoName, tag := utils.ParseRepositoryTag(repoName)
if strings.Contains(repoName, ":") {
remoteParts := strings.Split(repoName, ":")
tag = remoteParts[1]
repoName = remoteParts[0]
}
var context io.Reader var context io.Reader