rev-parse: add option --resolve-git-dir <path>
[gitweb.git] / t / t7403-submodule-sync.sh
index fb21b876838c47683bb2c4e8c79db85e2c0412e5..3620215c1f84b8e184b470c92b9a01c15fd75dc2 100755 (executable)
@@ -53,11 +53,12 @@ test_expect_success 'change submodule url' '
 
 test_expect_success '"git submodule sync" should update submodule URLs' '
        (cd super-clone &&
-        git pull &&
+        git pull --no-recurse-submodules &&
         git submodule sync
        ) &&
-       test -d "$(git config -f super-clone/submodule/.git/config \
-                               remote.origin.url)" &&
+       test -d "$(cd super-clone/submodule &&
+        git config remote.origin.url
+       )" &&
        (cd super-clone/submodule &&
         git checkout master &&
         git pull