diff options
author | Valery Sizov <valery@gitlab.com> | 2019-03-28 14:05:03 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2019-03-28 16:24:56 +0300 |
commit | cc2e849afd1a2b7c5c0ad1dcb5b675d072800b8b (patch) | |
tree | 426b52ebbccaf502ef43ee6723fe97191ea8f5c9 /spec/lib | |
parent | 04496085c1b83ccf5d9bfa546daf2a92e9c644e7 (diff) |
Use a fixed git abbrev parameter when we fetch a git revision
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index 8232715d00e..767b5779a79 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -10,7 +10,7 @@ describe Gitlab do end describe '.revision' do - let(:cmd) { %W[#{described_class.config.git.bin_path} log --pretty=format:%h -n 1] } + let(:cmd) { %W[#{described_class.config.git.bin_path} log --pretty=format:%h --abbrev=11 -n 1] } around do |example| described_class.instance_variable_set(:@_revision, nil) |