summaryrefslogtreecommitdiff
path: root/lib/gitlab/git
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2018-08-08 16:18:37 -0500
committerRubén Dávila <ruben@gitlab.com>2018-08-08 16:18:37 -0500
commit6688a719c44ab826bee1ca47b301812bd02cb1a6 (patch)
treea07645b27d61188c88b7c6cbed28c6105869c6f3 /lib/gitlab/git
parentbe1ef711edb13114cf6478821293bb2f0821e75c (diff)
downloadgitlab-ce-6688a719c44ab826bee1ca47b301812bd02cb1a6.tar.gz
Backport of gitlab-org/gitlab-ee!6848
Diffstat (limited to 'lib/gitlab/git')
-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