rev-parse: add option --resolve-git-dir <path>
[gitweb.git] / t / t7400-submodule-basic.sh
index 14dc92723c3dc96c1c3c15724df668226edf578e..270a7d5b81ec8d10b0bbc532a8a0fd2a200ce85f 100755 (executable)
@@ -360,10 +360,10 @@ test_expect_success 'update --init' '
        git submodule update init > update.out &&
        cat update.out &&
        test_i18ngrep "not initialized" update.out &&
-       ! test -d init/.git &&
+       test_must_fail git rev-parse --resolve-git-dir init/.git &&
 
        git submodule update --init init &&
-       test -d init/.git
+       git rev-parse --resolve-git-dir init/.git
 '
 
 test_expect_success 'do not add files from a submodule' '