@@ -17,7 +17,7 @@ test_allow_var () {
1717
1818 test_expect_success " fetch $desc (enabled)" '
1919 (
20- cd tmp.git &&
20+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
2121 GIT_ALLOW_PROTOCOL=$proto &&
2222 export GIT_ALLOW_PROTOCOL &&
2323 git fetch
@@ -26,7 +26,7 @@ test_allow_var () {
2626
2727 test_expect_success " push $desc (enabled)" '
2828 (
29- cd tmp.git &&
29+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
3030 GIT_ALLOW_PROTOCOL=$proto &&
3131 export GIT_ALLOW_PROTOCOL &&
3232 git push origin HEAD:pushed
@@ -35,7 +35,7 @@ test_allow_var () {
3535
3636 test_expect_success " push $desc (disabled)" '
3737 (
38- cd tmp.git &&
38+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
3939 GIT_ALLOW_PROTOCOL=none &&
4040 export GIT_ALLOW_PROTOCOL &&
4141 test_must_fail git push origin HEAD:pushed
@@ -44,7 +44,7 @@ test_allow_var () {
4444
4545 test_expect_success " fetch $desc (disabled)" '
4646 (
47- cd tmp.git &&
47+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
4848 GIT_ALLOW_PROTOCOL=none &&
4949 export GIT_ALLOW_PROTOCOL &&
5050 test_must_fail git fetch
@@ -119,7 +119,7 @@ test_config () {
119119
120120 test_expect_success " push $desc (disabled)" '
121121 (
122- cd tmp.git &&
122+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
123123 GIT_PROTOCOL_FROM_USER=0 &&
124124 export GIT_PROTOCOL_FROM_USER &&
125125 test_must_fail git -c protocol.$proto.allow=user push origin HEAD:pushed
@@ -128,7 +128,7 @@ test_config () {
128128
129129 test_expect_success " fetch $desc (disabled)" '
130130 (
131- cd tmp.git &&
131+ cd tmp.git && GIT_DIR=. && export GIT_DIR &&
132132 GIT_PROTOCOL_FROM_USER=0 &&
133133 export GIT_PROTOCOL_FROM_USER &&
134134 test_must_fail git -c protocol.$proto.allow=user fetch
0 commit comments