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:
parent
73c6d9f135
commit
a7068510a5
1 changed files with 1 additions and 6 deletions
7
api.go
7
api.go
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue