]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5505-remote.sh
Merge branch 'jc/maint-refs-dangling'
[thirdparty/git.git] / t / t5505-remote.sh
index a82c5ffa1c608f45786fe37531ffe93008a3570b..26920502093a98d4b5721f783e006de9d999792a 100755 (executable)
@@ -507,15 +507,15 @@ test_expect_success 'remote prune to cause a dangling symref' '
        (
                cd seven &&
                git remote prune origin
-       ) 2>err &&
+       ) >err 2>&1 &&
        grep "has become dangling" err &&
 
-       : And the dangling symref will not cause other annoying errors
+       : And the dangling symref will not cause other annoying errors &&
        (
                cd seven &&
                git branch -a
        ) 2>err &&
-       ! grep "points nowhere" err
+       ! grep "points nowhere" err &&
        (
                cd seven &&
                test_must_fail git branch nomore origin