-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
+--- gitlab-ci-multi-runner/shells/abstract.go~ 2017-05-02 13:12:18.000000000 +0300
++++ gitlab-ci-multi-runner/shells/abstract.go 2017-05-16 08:10:46.528840805 +0300
+@@ -96,7 +96,11 @@
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)
-+ if build.Tag {
-+ w.Command("git", "checkout", "-f", "-q", build.Sha)
+ w.Notice("Checking out %s as %s...", build.GitInfo.Sha[0:8], build.GitInfo.Ref)
+- w.Command("git", "checkout", "-f", "-q", build.GitInfo.Sha)
++ if build.GitInfo.RefType == common.RefTypeTag {
++ w.Command("git", "checkout", "-f", "-q", build.GitInfo.Sha)
+ } else {
-+ w.Command("git", "checkout", "-fq", "-B", build.RefName, build.Sha)
++ w.Command("git", "checkout", "-fq", "-B", build.GitInfo.Ref, build.GitInfo.Sha)
+ }
}
- func (b *AbstractShell) cacheFile(build *common.Build, userKey string) (key, file string) {
+ func (b *AbstractShell) writeSubmoduleUpdateCmd(w ShellWriter, build *common.Build, recursive bool) {
Summary: The official GitLab CI runner written in Go
Name: gitlab-ci-multi-runner
-Version: 1.10.0
-Release: 1
+Version: 9.1.1
+Release: 0.1
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
-# Source0-md5: fb2034a3c976d0abc2ae1579df3adf93
+# Source0-md5: 06776a8b070bc741a7ec3d33c7bce7ab
Source3: %{name}.init
Source4: %{name}.sysconfig
Source5: %{name}.service
Author: Dmitry Smirnov <onlyjob@debian.org>
Description: do not incorporate Docker image into executable.
---- gitlab-ci-multi-runner/executors/docker/executor_docker.go~ 2016-12-22 16:21:38.000000000 +0200
-+++ gitlab-ci-multi-runner/executors/docker/executor_docker.go 2016-12-23 14:41:59.425571451 +0200
-@@ -208,17 +208,11 @@
- return
+--- gitlab-ci-multi-runner/executors/docker/executor_docker.go~ 2017-05-02 13:12:18.000000000 +0300
++++ gitlab-ci-multi-runner/executors/docker/executor_docker.go 2017-05-16 08:08:28.042038918 +0300
+@@ -228,16 +228,11 @@
+ return &image, nil
}
- data, err := Asset("prebuilt-" + architecture + prebuiltImageExtension)
- }
-
s.Debugln("Loading prebuilt image...")
- err = s.client.ImportImage(docker.ImportImageOptions{
- Repository: prebuiltImageName,
- Tag: architecture + "-" + common.REVISION,
-- Source: "-",
-- InputStream: bytes.NewBuffer(data),
+
+ ref := prebuiltImageName
+ source := types.ImageImportSource{
+- Source: bytes.NewBuffer(data),
+ Source: "/var/lib/gitlab-runner/prebuilt-" + architecture + ".tar.xz",
- })
- if err != nil {
- return
+ SourceName: "-",
+ }
+ options := types.ImageImportOptions{