From cfa5faaae0d9ac9a3c1fafb1a41e07b298029f48 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 18 Jan 2022 00:24:03 +0000 Subject: Add latest changes from gitlab-org/gitlab@14-6-stable-ee --- lib/gitlab/git/rugged_impl/commit.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3