t5601: add missing && cascade
[gitweb.git] / t / t5601-clone.sh
index e8103144bb026afb12f5b058b9ec399b70abebbd..49821eb4679cd302714ad26ff0947c2980216e00 100755 (executable)
@@ -9,9 +9,9 @@ test_expect_success setup '
        rm -fr .git &&
        test_create_repo src &&
        (
-               cd src
-               >file
-               git add file
+               cd src &&
+               >file &&
+               git add file &&
                git commit -m initial
        )
 
@@ -206,6 +206,20 @@ test_expect_success 'clone from .git file' '
        git clone dst/.git dst2
 '
 
+test_expect_success 'fetch from .git gitfile' '
+       (
+               cd dst2 &&
+               git fetch ../dst/.git
+       )
+'
+
+test_expect_success 'fetch from gitfile parent' '
+       (
+               cd dst2 &&
+               git fetch ../dst
+       )
+'
+
 test_expect_success 'clone separate gitdir where target already exists' '
        rm -rf dst &&
        test_must_fail git clone --separate-git-dir realgitdir src dst