shipit-engine 0.35.0 → 0.35.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cbfd599963d1633705290c92ef5c7171619c1350a3a431546061e3521c78a3a
4
- data.tar.gz: a588c0fc5bda460eeb99121aaa06d83f2177eaf208f28253bb672eff9ff0c79c
3
+ metadata.gz: 7ab32590ea528100fc22999f40a17d9ffcefb72313672eb4858befdb9a6932e1
4
+ data.tar.gz: fe6fe3d4b026e0e2d0ecb067639d97027649d26fd785c90b9e198ce0e478c2a9
5
5
  SHA512:
6
- metadata.gz: 0bf7ec4d0a2a7f7e3192bda2e26252677217bf9bbc2f877c27c0b5aa66b9862fbb49fce0737239bb3a537831908deacc7d7e06a35ca7d343d5b9067b5aa98d98
7
- data.tar.gz: 8dfd2d78e9ab13f6c04fb95a661979512d0721f983f94aa77b5eba9202609af9ea043e6b382f5cdfc6856928aba755ae91ab0fd79e566e6f224be11b53f2a700
6
+ metadata.gz: a51d622ab862751d118d2d0995361366d8035481f090ddfcaa09f01b672c326ed1708c4085831a195899500762cd29b6247c01710e08260b5baf263d2363cc33
7
+ data.tar.gz: 327aac9271b84975c388c0dbb42c380f99c00d15b1ce6930bba6877066d0333b3c60efcaf8ab56e925d17e90ac1462c48cbccb9ec5da1537c04f45fe6149c49b
@@ -72,7 +72,7 @@ module Shipit
72
72
  ).run!
73
73
 
74
74
  git_dir = File.join(dir, @stack.repo_name)
75
- git('checkout', '--config', 'advice.detachedHead=false', commit.sha, chdir: git_dir).run! if commit
75
+ git('-c', 'advice.detachedHead=false', 'checkout', commit.sha, chdir: git_dir).run! if commit
76
76
  yield Pathname.new(git_dir)
77
77
  end
78
78
  end
@@ -47,7 +47,7 @@ module Shipit
47
47
  end
48
48
 
49
49
  def checkout(commit)
50
- git('checkout', commit.sha, chdir: @task.working_directory)
50
+ git('-c', 'advice.detachedHead=false', 'checkout', commit.sha, chdir: @task.working_directory)
51
51
  end
52
52
 
53
53
  def clone
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Shipit
3
- VERSION = '0.35.0'
3
+ VERSION = '0.35.1'
4
4
  end
@@ -134,7 +134,7 @@ module Shipit
134
134
 
135
135
  test "#checkout checks out the deployed commit" do
136
136
  command = @commands.checkout(@deploy.until_commit)
137
- assert_equal ['git', 'checkout', @deploy.until_commit.sha], command.args
137
+ assert_equal ['git', '-c', 'advice.detachedHead=false', 'checkout', @deploy.until_commit.sha], command.args
138
138
  end
139
139
 
140
140
  test "#checkout checks out the deployed commit from the working directory" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.35.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier