Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: filenames with spaces in diff scan #1696

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

elsapet
Copy link
Contributor

@elsapet elsapet commented Oct 17, 2024

Description

Add a prefix options to git diff command so we can handle filenames with spaces. Note, git diff puts quotation marks around some whitespace (e.g. tabs) but not single spaces which is the issue we were seeing.

Here we use UUID markers for both from and to paths.

Related

Checklist

If this is your first time contributing please sign the CLA

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.

@elsapet elsapet requested review from didroe and gotbadger October 17, 2024 07:12
@elsapet elsapet force-pushed the fix/filenames-with-spaces-in-diff-scan branch from ebe17d7 to dc78659 Compare October 17, 2024 07:40
@elsapet elsapet force-pushed the fix/filenames-with-spaces-in-diff-scan branch from dc78659 to b7de36c Compare October 17, 2024 14:48
@elsapet elsapet marked this pull request as ready for review October 17, 2024 14:50
@elsapet elsapet force-pushed the fix/filenames-with-spaces-in-diff-scan branch from b7de36c to ec1003a Compare October 17, 2024 14:52
@elsapet elsapet merged commit 44da91e into main Oct 17, 2024
8 checks passed
@elsapet elsapet deleted the fix/filenames-with-spaces-in-diff-scan branch October 17, 2024 15:26
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.

No findings when filename contains spaces
2 participants