Fix Windows-related -c
options in match_baseline_files
#1871
+2
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
match_baseline_files.sh
fixture script adds entries to the index usinggit update-index --add --cacheinfo
. These entries don't exist on disk, so it should be okay that some would cause problems on Windows if an attempt were made to actually create them. The tests that use the generated repository work on Windows.It is intended that the fixture script also be able to run on Windows, and Windows-related
-c
options are passed in commands where they are expected to be needed:core.ignoreCase=false
andcore.protectNTFS=false
.But the fixture script nonetheless was failing on Windows because two commands that don't need
core.ignoreCase=false
but do needcore.protectNTFS=false
hadcore.ignorecase=false
instead. This corrects that.This fixes two of the long-standing
GIX_TEST_IGNORE_ARCHIVES=1
Windows failures reported in #1358:gix-pathspec::pathspec search::files
gix-pathspec::pathspec search::prefixes_are_always_case_sensitive
This includes a regenerated archive (generated on Arch Linux with Git 2.48.1) and updates
etc/test-fixtures-windows-expected-failures-see-issue-1358.txt
to remove the two tests that now pass on Windows even withGIX_TEST_IGNORE_ARCHIVES=1
.The
test-fixtures-windows
job currently fails here due to #1849, the same as on main if CI is rerun there, as described in #1849 (comment). If #1870 is merged, the failures should go away. This PR could be rebased after merging if #1870, if desired.