Code

Merge branch 'maint'
[git.git] / t / t5505-remote.sh
index acfea06b81e95e0b9cdb621200dc6c6620b70107..230c0cd784b317856749609cf64a5067e35a6965 100755 (executable)
@@ -508,15 +508,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