Restore original index error check for snippet commit check
The Rugged implementation of the `UserCommitFiles` RPC raised a `Gitlab::Git::Index::IndexError` when an invalid file was written (e.g. `.git/hooks/pre-commit`), but the Go implementation previously swallowed the Git2Go equivalent error and raised a `Gitlab::Git::CommandError` instead. Now that https://gitlab.com/gitlab-org/gitaly/-/merge_requests/3165 has been merged, we partially revert the change in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54662 to check the original error type. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/322096
Showing
Please register or sign in to comment