From dd1c8f219b6da490713106313b8119be87e20686 Mon Sep 17 00:00:00 2001 From: Thalia Archibald Date: Sat, 6 Jul 2024 02:46:07 -0700 Subject: [PATCH] Disable core.ignoreCase in tests When core.ignoreCase is set in the global config, hg-fast-export.sh warns the user and exits. Override this for tests. --- t/file_data_filter-removefiles.t | 3 ++- t/file_data_filter.t | 3 ++- t/main.t | 1 + t/smoke-test.t | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/t/file_data_filter-removefiles.t b/t/file_data_filter-removefiles.t index 2adafae..4686814 100755 --- a/t/file_data_filter-removefiles.t +++ b/t/file_data_filter-removefiles.t @@ -18,7 +18,8 @@ check() { } git_create() { - git init -q "$1" + git init -q "$1" && + git -C "$1" config core.ignoreCase false } git_convert() { diff --git a/t/file_data_filter.t b/t/file_data_filter.t index aa054c9..8b3eb52 100755 --- a/t/file_data_filter.t +++ b/t/file_data_filter.t @@ -17,7 +17,8 @@ check() { } git_create() { - git init -q "$1" + git init -q "$1" && + git -C "$1" config core.ignoreCase false } git_convert() { diff --git a/t/main.t b/t/main.t index 25acb35..659cabe 100755 --- a/t/main.t +++ b/t/main.t @@ -17,6 +17,7 @@ git_clone() { ( git init -q "$2" && cd "$2" && + git config core.ignoreCase false && hg-fast-export.sh --repo "../$1" ) } diff --git a/t/smoke-test.t b/t/smoke-test.t index 73ffff8..0e0d206 100755 --- a/t/smoke-test.t +++ b/t/smoke-test.t @@ -17,7 +17,8 @@ check() { } git_create() { - git init -q "$1" + git init -q "$1" && + git -C "$1" config core.ignoreCase false } git_convert() {