fix same issue in api.go

Upstream-commit: a7068510a5ee4af6776221ba00bc332266f97088
Component: engine
This commit is contained in:
Victor Vieux
2013-07-31 08:01:20 +00:00
parent e5429eecea
commit 496b0008be

View File

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