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 /lib/gitlab.rb
parent04496085c1b83ccf5d9bfa546daf2a92e9c644e7 (diff)
Use a fixed git abbrev parameter when we fetch a git revision
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r--lib/gitlab.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index f42ca5a9cd6..1204e53ee2e 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -24,7 +24,7 @@ module Gitlab
if File.exist?(root.join("REVISION"))
File.read(root.join("REVISION")).strip.freeze
else
- result = Gitlab::Popen.popen_with_detail(%W[#{config.git.bin_path} log --pretty=format:%h -n 1])
+ result = Gitlab::Popen.popen_with_detail(%W[#{config.git.bin_path} log --pretty=format:%h --abbrev=11 -n 1])
if result.status.success?
result.stdout.chomp.freeze