]>
Commit | Line | Data |
---|---|---|
c4affa20 ER |
1 | --- gitlab-ci-multi-runner-1.6.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells/abstract.go~ 2016-09-22 20:36:49.000000000 +0300 |
2 | +++ gitlab-ci-multi-runner-1.6.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells/abstract.go 2016-10-24 11:05:20.385999188 +0300 | |
3 | @@ -99,7 +99,8 @@ | |
4 | ||
5 | func (b *AbstractShell) writeCheckoutCmd(w ShellWriter, build *common.Build) { | |
6 | w.Notice("Checking out %s as %s...", build.Sha[0:8], build.RefName) | |
7 | - w.Command("git", "checkout", "-q", build.Sha) | |
8 | + w.Command("git", "checkout", "-q", build.RefName) | |
9 | + w.Command("git", "reset", "--hard", "-q", build.Sha) | |
10 | } | |
11 | ||
12 | func (b *AbstractShell) cacheFile(build *common.Build, userKey string) (key, file string) { |