Commit fb0ccaee authored by Steve Azzopardi's avatar Steve Azzopardi
Browse files

Merge branch 'silence-remote-add-failure' into 'master'

Do not print remote addition failure message

Closes #4105

See merge request gitlab-org/gitlab-runner!1287
parents d1b7fca6 32f0ab4d
......@@ -167,7 +167,7 @@ func (b *AbstractShell) writeRefspecFetchCmd(w ShellWriter, build *common.Build,
// Add `git remote` or update existing
w.IfCmdWithOutput("git", "remote", "add", "origin", build.GetRemoteURL())
w.IfCmd("git", "remote", "add", "origin", build.GetRemoteURL())
w.Notice("Created fresh repository.")
w.Command("git", "remote", "set-url", "origin", build.GetRemoteURL())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment