summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-03-29 09:44:35 +0000
committerSean McGivern <sean@gitlab.com>2019-03-29 09:44:35 +0000
commit7ae35d0a78535218c7e01b917dccc1cea766707b (patch)
tree24912e8206419e08b7d5e12568f3d942cfc9ba9b /spec
parentc395ef1d6e9e78833443c3410ec55bd041840f14 (diff)
parentcc2e849afd1a2b7c5c0ad1dcb5b675d072800b8b (diff)
downloadgitlab-ce-7ae35d0a78535218c7e01b917dccc1cea766707b.tar.gz
Merge branch '10735-geo-gitlab-revision-can-return-not-consistent-results' into 'master'
Use a fixed git abbrev parameter when we fetch a git revision See merge request gitlab-org/gitlab-ce!26707
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab_spec.rb2
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)