forked from newren/git-filter-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter-repo: add tests for --replace-text in binary blobs
The --replace-text failed to detect blobs as binary and incorrectly applied to all blobs. Prior to switch from python2 to python3 it incorrectly designated blobs containing 0 character instead of NUL byte as binary and would have been causing text replacements to apply to binary files and not apply to text files containing 0 character. Add regression tests with blobs containing; 0 character, NUL byte, and both 0 character and NUL byte. Signed-off-by: rndbit <[email protected]>
- Loading branch information
rndbit
committed
Sep 2, 2021
1 parent
9cfe2b4
commit 9932167
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters