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.
git-filter-repo --version
restores the original shebang and@@LOCALEDIR@@
before giving itself togit hash-object
, ensuring such changes don’t affect the version. The test t/t9390-filter-repo.sh:1803 “--version” compares the output given bygit-filter-repo --version
with that ofgit 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.