From e02f1271f5784fe7c17a9efae8612999e1e62ee3 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Tue, 17 Apr 2018 16:30:16 +0200 Subject: Return nil on empty path The execution path wasn't clear from the error, but either way this is a fix. Closes gitlab-org/gitaly#1115 --- lib/gitlab/git/commit.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index 0fb82441bf8..fabcd46c8e9 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -486,6 +486,8 @@ module Gitlab end def tree_entry(path) + return unless path.present? + @repository.gitaly_migrate(:commit_tree_entry) do |is_migrated| if is_migrated gitaly_tree_entry(path) -- cgit v1.2.1