Commit 0f38ae40 authored by Kamil Trzciński's avatar Kamil Trzciński

Make git init to be quiet

parent 5415585b
Pipeline #63953654 passed with stages
in 132 minutes and 42 seconds
......@@ -147,6 +147,13 @@ func (b *AbstractShell) writeFetchCmd(w ShellWriter, build *common.Build, projec
func (b *AbstractShell) writeRefspecFetchCmd(w ShellWriter, build *common.Build, projectDir string, gitDir string) {
depth := build.GitInfo.Depth
// fetching
if depth > 0 {
w.Notice("Fetching changes with git depth set to %d...", depth)
} else {
w.Notice("Fetching changes...")
}
// initializing
templateDir := w.MkTmpDir("git-template")
templateFile := path.Join(templateDir, "config")
......@@ -160,13 +167,6 @@ func (b *AbstractShell) writeRefspecFetchCmd(w ShellWriter, build *common.Build,
w.Cd(projectDir)
b.writeGitCleanup(w, build)
// fetching
if depth > 0 {
w.Notice("Fetching changes with git depth set to %d...", depth)
} else {
w.Notice("Fetching changes...")
}
// Add `git remote` or update existing
w.IfCmd("git", "remote", "add", "origin", build.GetRemoteURL())
w.Notice("Created fresh repository.")
......
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