Merge branch 'mh/refs-have-new'
[gitweb.git] / t / t7400-submodule-basic.sh
index 4004d1266885686acc84244518cac6589a1e58eb..5811a982f472e3b79f31cc50dcdef92dcdb4a58c 100755 (executable)
@@ -266,8 +266,7 @@ test_expect_success 'submodule add in subdirectory with relative path should fai
 '
 
 test_expect_success 'setup - add an example entry to .gitmodules' '
-       GIT_CONFIG=.gitmodules \
-       git config submodule.example.url git://example.com/init.git
+       git config --file=.gitmodules submodule.example.url git://example.com/init.git
 '
 
 test_expect_success 'status should fail for unmapped paths' '
@@ -281,7 +280,7 @@ test_expect_success 'setup - map path in .gitmodules' '
        path = init
 EOF
 
-       GIT_CONFIG=.gitmodules git config submodule.example.path init &&
+       git config --file=.gitmodules submodule.example.path init &&
 
        test_cmp expect .gitmodules
 '