Skip to content

Avoid scanning of entire repo when a file is deleted#1

Merged
khhipparagi merged 1 commit into
masterfrom
bug/fix-scanning-of-entire-repo-when-a-file-deleted
Dec 15, 2023
Merged

Avoid scanning of entire repo when a file is deleted#1
khhipparagi merged 1 commit into
masterfrom
bug/fix-scanning-of-entire-repo-when-a-file-deleted

Conversation

@khhipparagi
Copy link
Copy Markdown
Owner

Issue #, if available:

The git secrets scans the entire repo when file is removed. For large repos, this impacts the user experience, if they are using any IDE for development, developer need to use terminal to force git secrets to skip the scan with --no-verify option.

Description of changes:
This change is done, when no files are returned, then pre_commit_hook will gracefully return instead of calling scan_with_fn_or_die function.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@khhipparagi
Copy link
Copy Markdown
Owner Author

Merging awslabs#247

@khhipparagi khhipparagi merged commit 4700193 into master Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant