Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2019-03-28 14:05:03 +0300
committerValery Sizov <valery@gitlab.com>2019-03-28 16:24:56 +0300
commitcc2e849afd1a2b7c5c0ad1dcb5b675d072800b8b (patch)
tree426b52ebbccaf502ef43ee6723fe97191ea8f5c9 /spec/lib/gitlab_spec.rb
parent04496085c1b83ccf5d9bfa546daf2a92e9c644e7 (diff)
Use a fixed git abbrev parameter when we fetch a git revision
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-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)