From 6688a719c44ab826bee1ca47b301812bd02cb1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D=C3=A1vila?= Date: Wed, 8 Aug 2018 16:18:37 -0500 Subject: Backport of gitlab-org/gitlab-ee!6848 --- lib/gitlab/git/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1