Make all Gitlab::Git exceptions inherit from Gitlab::Git::BaseError
BaseError sanitizes `debug_error_string`, which we do to avoid leaking details to the user and polluting Sentry. This inheritance means code that rescues `Gitlab::Git::BaseError` needs to rescue `Gitlab::Git::Repository::NoRepository` earlier.
Showing
Please register or sign in to comment