diff options
author | Valery Sizov <valery@gitlab.com> | 2019-03-28 13:05:03 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2019-03-28 15:24:56 +0200 |
commit | cc2e849afd1a2b7c5c0ad1dcb5b675d072800b8b (patch) | |
tree | 426b52ebbccaf502ef43ee6723fe97191ea8f5c9 /spec/lib/gitlab_spec.rb | |
parent | 04496085c1b83ccf5d9bfa546daf2a92e9c644e7 (diff) | |
download | gitlab-ce-cc2e849afd1a2b7c5c0ad1dcb5b675d072800b8b.tar.gz |
Use a fixed git abbrev parameter when we fetch a git revision10735-geo-gitlab-revision-can-return-not-consistent-results
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-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) |