]> git.pld-linux.org Git - packages/gitlab-runner.git/blame - branch-preserver.patch
up to 10.0.2
[packages/gitlab-runner.git] / branch-preserver.patch
CommitLineData
ec1f413c
ER
1--- gitlab-ci-multi-runner/shells/abstract.go~ 2017-05-02 13:12:18.000000000 +0300
2+++ gitlab-ci-multi-runner/shells/abstract.go 2017-05-16 08:10:46.528840805 +0300
3@@ -96,7 +96,11 @@
c4affa20
ER
4
5 func (b *AbstractShell) writeCheckoutCmd(w ShellWriter, build *common.Build) {
ec1f413c
ER
6 w.Notice("Checking out %s as %s...", build.GitInfo.Sha[0:8], build.GitInfo.Ref)
7- w.Command("git", "checkout", "-f", "-q", build.GitInfo.Sha)
8+ if build.GitInfo.RefType == common.RefTypeTag {
9+ w.Command("git", "checkout", "-f", "-q", build.GitInfo.Sha)
dfe9a179 10+ } else {
ec1f413c 11+ w.Command("git", "checkout", "-fq", "-B", build.GitInfo.Ref, build.GitInfo.Sha)
dfe9a179 12+ }
c4affa20
ER
13 }
14
ec1f413c 15 func (b *AbstractShell) writeSubmoduleUpdateCmd(w ShellWriter, build *common.Build, recursive bool) {
This page took 0.090437 seconds and 4 git commands to generate.