git-filter-repo icon indicating copy to clipboard operation
git-filter-repo copied to clipboard

the `--version` test is broken

Open Humm42 opened this issue 1 year ago • 0 comments

git-filter-repo --version restores the original shebang and @@LOCALEDIR@@ before giving itself to git hash-object, ensuring such changes don’t affect the version. The test t/t9390-filter-repo.sh:1803 “--version” compares the output given by git-filter-repo --version with that of git hash-object git-filter-repo.

If no shebang or @@LOCALEDIR@@ replacement is made or it’s made after running the test, the undoing that replacement is not tested.

If the shebang or @@LOCALEDIR@@ is replaced before running the test, it fails.

Humm42 avatar Oct 12 '23 12:10 Humm42