Skip to content

Commit 537d990

Browse files
committed
Merge branch 'maint'
* maint: HOME must be set before calling git-init when creating test repositories
2 parents 96220d8 + 90cff96 commit 537d990

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/test-lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,14 +993,14 @@ rm -fr "$test" || {
993993
exit 1
994994
}
995995

996+
HOME="$TRASH_DIRECTORY"
997+
export HOME
998+
996999
test_create_repo "$test"
9971000
# Use -P to resolve symlinks in our working directory so that the cwd
9981001
# in subprocesses like git equals our $PWD (for pathname comparisons).
9991002
cd -P "$test" || exit 1
10001003

1001-
HOME=$(pwd)
1002-
export HOME
1003-
10041004
this_test=${0##*/}
10051005
this_test=${this_test%%-*}
10061006
for skp in $GIT_SKIP_TESTS

0 commit comments

Comments
 (0)