Commit 8d5f0425 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Revert "Fix tags handling when using git fetch: fetch all tags and prune the old ones"

This reverts commit 525bd514.

Conflicts:
	CHANGELOG.md
parent ba199584
v 0.6.1
- Revert: Fix tags handling when using git fetch: fetch all tags and prune the old ones
v 0.6.0
- Fetch docker auth from ~/.docker/config.json or ~/.dockercfg
- Added support for NTFSSecurity PowerShell module to address problems with long paths on Windows
......
......@@ -45,7 +45,7 @@ func (b *BashShell) writeFetchCmd(w io.Writer, build *common.Build, projectDir s
io.WriteString(w, fmt.Sprintf("git clean -ffdx\n"))
io.WriteString(w, fmt.Sprintf("git reset --hard > /dev/null\n"))
io.WriteString(w, fmt.Sprintf("git remote set-url origin %s\n", helpers.ShellEscape(build.RepoURL)))
io.WriteString(w, fmt.Sprintf("git fetch origin --tags -p\n"))
io.WriteString(w, fmt.Sprintf("git fetch origin\n"))
io.WriteString(w, fmt.Sprintf("else\n"))
b.writeCloneCmd(w, build, projectDir)
io.WriteString(w, fmt.Sprintf("fi\n"))
......
......@@ -43,7 +43,7 @@ func (b *CmdShell) writeFetchCmd(w io.Writer, build *common.Build, dir string) {
b.writeCommandChecked(w, "git clean -ffdx")
b.writeCommandChecked(w, "git reset --hard > NUL")
b.writeCommandChecked(w, "git remote set-url origin \"%s\"", build.RepoURL)
b.writeCommandChecked(w, "git fetch origin --tags -p")
b.writeCommandChecked(w, "git fetch origin")
b.writeCommand(w, ") ELSE (")
b.writeCloneCmd(w, build, dir)
b.writeCommand(w, ")")
......
......@@ -48,7 +48,7 @@ func (b *PowerShell) writeFetchCmd(w io.Writer, build *common.Build, dir string)
b.writeCommandChecked(w, "git clean -ffdx")
b.writeCommandChecked(w, "git reset --hard > $null")
b.writeCommandChecked(w, "git remote set-url origin \"%s\"", build.RepoURL)
b.writeCommandChecked(w, "git fetch origin --tags -p")
b.writeCommandChecked(w, "git fetch origin")
b.writeCommand(w, "} else {")
b.writeCloneCmd(w, build, dir)
b.writeCommand(w, "}")
......
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