• Stan Hu's avatar
    Fix destruction of projects with pipelines · 1cbf0709
    Stan Hu authored
    If a repository were deleted, the Gitaly implementation of
    list_commits_by_oid would catch a GRPC NotFound error and simply return
    an empty set.
    
    However, the Rugged implementation would throw an NoRepository
    exception. This would prevent a repository from being deleted.
    
    We make the Rugged implementation consistent with Gitaly since the
    behavior of destroying projects and CI pipelines relies on the Gitaly
    implementation.
    
    Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/349414
    
    Changelog: fixed
    1cbf0709
commit_spec.rb 23 KB