The `match_baseline_files.sh` fixture script adds entries to the index using `git 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` and `core.protectNTFS=false`. But the fixture script nonetheless was failing on Windows because two commands that don't need `core.ignoreCase=false` but *do* need `core.protectNTFS=false` had `core.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
Unified · Split
| @@ -2,8 +2,6 @@ gix-glob::glob pattern::matching::compare_baseline_with_ours · 1 unmodified line | |||
| 2 | gix-pathspec::pathspec parse::baseline | 2 | gix-pathspec::pathspec parse::baseline |
| 3 | gix-pathspec::pathspec parse::valid::glob_negations_are_always_literal | 3 | gix-pathspec::pathspec parse::valid::glob_negations_are_always_literal |
| 4 | gix-pathspec::pathspec parse::valid::whitespace_in_pathspec | 4 | gix-pathspec::pathspec parse::valid::whitespace_in_pathspec |
| 5 | gix-pathspec::pathspec search::files | ||
| 6 | gix-pathspec::pathspec search::prefixes_are_always_case_sensitive | ||
| 7 | gix-submodule::submodule file::baseline::common_values_and_names_by_path | 5 | gix-submodule::submodule file::baseline::common_values_and_names_by_path |
| 8 | gix-submodule::submodule file::is_active_platform::pathspecs_matter_even_if_they_do_not_match | 6 | gix-submodule::submodule file::is_active_platform::pathspecs_matter_even_if_they_do_not_match |
| 9 | gix-submodule::submodule file::is_active_platform::submodules_with_active_config_are_considered_active_or_inactive | 7 | gix-submodule::submodule file::is_active_platform::submodules_with_active_config_are_considered_active_or_inactive |
Binary file not shown.
| @@ -32,8 +32,8 @@ git update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" "!a" · 31 unmodified lines | |||
| 32 | for p in bar bAr BAR foo/bar foo/bAr foo/BAR fOo/bar fOo/bAr fOo/BAR FOO/bar FOO/bAr FOO/BAR; do | 32 | for p in bar bAr BAR foo/bar foo/bAr foo/BAR fOo/bar fOo/bAr fOo/BAR FOO/bar FOO/bAr FOO/BAR; do |
| 33 | git -c core.ignoreCase=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" "$p" | 33 | git -c core.ignoreCase=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" "$p" |
| 34 | done | 34 | done |
| 35 | git -c core.ignoreCase=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" " " # 4 x space | 35 | git -c core.protectNTFS=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" " " # 4 x space |
| 36 | git -c core.ignoreCase=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" " hi " # 2 x space hi 2 x space | 36 | git -c core.protectNTFS=false update-index --add --cacheinfo 100644 "$(git rev-parse HEAD:goo)" " hi " # 2 x space hi 2 x space |
| 37 | 37 | ||
| 38 | git ls-files > paths | 38 | git ls-files > paths |
| 39 | 39 | ||