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
path: root/lib
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2018-08-09 00:18:37 +0300
committerRubén Dávila <ruben@gitlab.com>2018-08-09 00:18:37 +0300
commit6688a719c44ab826bee1ca47b301812bd02cb1a6 (patch)
treea07645b27d61188c88b7c6cbed28c6105869c6f3 /lib
parentbe1ef711edb13114cf6478821293bb2f0821e75c (diff)
Backport of gitlab-org/gitlab-ee!6848
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index de189ac6dfc..3e11355435b 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -382,7 +382,7 @@ module Gitlab
end
def new_blobs(newrev)
- return [] if newrev == ::Gitlab::Git::BLANK_SHA
+ return [] if newrev.blank? || newrev == ::Gitlab::Git::BLANK_SHA
strong_memoize("new_blobs_#{newrev}") do
wrapped_gitaly_errors do