Skip to content

Commit

Permalink
Disable core.ignoreCase in tests
Browse files Browse the repository at this point in the history
When core.ignoreCase is set in the global config, hg-fast-export.sh
warns the user and exits. Override this for tests.
  • Loading branch information
thaliaarchi committed Jul 6, 2024
1 parent f947189 commit dd1c8f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion t/file_data_filter-removefiles.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ check() {
}

git_create() {
git init -q "$1"
git init -q "$1" &&
git -C "$1" config core.ignoreCase false
}

git_convert() {
Expand Down
3 changes: 2 additions & 1 deletion t/file_data_filter.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ check() {
}

git_create() {
git init -q "$1"
git init -q "$1" &&
git -C "$1" config core.ignoreCase false
}

git_convert() {
Expand Down
1 change: 1 addition & 0 deletions t/main.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ git_clone() {
(
git init -q "$2" &&
cd "$2" &&
git config core.ignoreCase false &&
hg-fast-export.sh --repo "../$1"
)
}
Expand Down
3 changes: 2 additions & 1 deletion t/smoke-test.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ check() {
}

git_create() {
git init -q "$1"
git init -q "$1" &&
git -C "$1" config core.ignoreCase false
}

git_convert() {
Expand Down

0 comments on commit dd1c8f2

Please sign in to comment.