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:
Diffstat (limited to 'lib/gitlab/git/rugged_impl/commit.rb')
-rw-r--r--lib/gitlab/git/rugged_impl/commit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/git/rugged_impl/commit.rb b/lib/gitlab/git/rugged_impl/commit.rb
index 0607b151de2..cf547414b0d 100644
--- a/lib/gitlab/git/rugged_impl/commit.rb
+++ b/lib/gitlab/git/rugged_impl/commit.rb
@@ -31,6 +31,9 @@ module Gitlab
oids.map { |oid| rugged_find(repo, oid) }
.compact
.map { |commit| decorate(repo, commit) }
+ # Match Gitaly's list_commits_by_oid behavior
+ rescue ::Gitlab::Git::Repository::NoRepository
+ []
end
override :find_commit