--- /dev/null
+--- 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
++++ 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
+@@ -99,7 +99,8 @@
+
+ func (b *AbstractShell) writeCheckoutCmd(w ShellWriter, build *common.Build) {
+ w.Notice("Checking out %s as %s...", build.Sha[0:8], build.RefName)
+- w.Command("git", "checkout", "-q", build.Sha)
++ w.Command("git", "checkout", "-q", build.RefName)
++ w.Command("git", "reset", "--hard", "-q", build.Sha)
+ }
+
+ func (b *AbstractShell) cacheFile(build *common.Build, userKey string) (key, file string) {
Source2: https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/master/docker/prebuilt-arm.tar.xz
# Source2-md5: c0533c581624dcb33095f08f06e6a00b
Patch0: nodim_gz.patch
+Patch1: branch-preserver.patch
URL: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner
BuildRequires: git-core
%{?with_bindata:BuildRequires: go-bindata >= 3.0.7-1.a0ff2567}
cd src/%{import_path}
%{!?with_bindata:%patch0 -p1}
+%patch1 -p5
%if %{with bindata}
install -d out/docker