diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-18 03:24:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-18 03:24:03 +0300 |
commit | cfa5faaae0d9ac9a3c1fafb1a41e07b298029f48 (patch) | |
tree | b7ce1807d00c85cb94cbdc4a031562623e5343d6 /lib/gitlab/git | |
parent | ab5b519cca2356dd2b84a7fffc6ddbd6dc43a0ab (diff) |
Add latest changes from gitlab-org/gitlab@14-6-stable-ee
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r-- | lib/gitlab/git/rugged_impl/commit.rb | 3 |
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 |