---- gitlab-ci-multi-runner-1.7.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells/abstract.go~ 2016-10-21 23:19:09.000000000 +0300
-+++ gitlab-ci-multi-runner-1.7.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells/abstract.go 2016-10-24 11:51:14.842526005 +0300
-@@ -99,7 +99,7 @@
+diff --git a/shells/abstract.go b/shells/abstract.go
+index e4ae2b0..f3cb56b 100644
+--- a/shells/abstract.go
++++ b/shells/abstract.go
+@@ -99,7 +99,11 @@ func (b *AbstractShell) writeFetchCmd(w ShellWriter, build *common.Build, projec
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", "-f", "-q", build.Sha)
-+ w.Command("git", "checkout", "-fq", "-B", build.RefName, build.Sha)
++ if build.Tag {
++ w.Command("git", "checkout", "-f", "-q", build.Sha)
++ } else {
++ w.Command("git", "checkout", "-fq", "-B", build.RefName, build.Sha)
++ }
}
func (b *AbstractShell) cacheFile(build *common.Build, userKey string) (key, file string) {
Summary: The official GitLab CI runner written in Go
Name: gitlab-ci-multi-runner
Version: 1.7.1
-Release: 2
+Release: 3
License: MIT
Group: Development/Building
Source0: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz
URL: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner
BuildRequires: git-core
%{?with_bindata:BuildRequires: go-bindata >= 3.0.7-1.a0ff2567}
-BuildRequires: golang >= 1.4
+BuildRequires: golang >= 1.6
BuildRequires: rpmbuild(macros) >= 1.647
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
cd src/%{import_path}
%{!?with_bindata:%patch0 -p1}
-%patch1 -p5
+%patch1 -p1
%if %{with bindata}
install -d out/docker