These tests will be made to pass by subsequent patches.
Signed-off-by: Johan Herland <[email protected]>
---
t/t7900-working-with-namespaced-remote-refs.sh | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/t/t7900-working-with-namespaced-remote-refs.sh
b/t/t7900-working-with-namespaced-remote-refs.sh
index 33266e0..279664c 100755
--- a/t/t7900-working-with-namespaced-remote-refs.sh
+++ b/t/t7900-working-with-namespaced-remote-refs.sh
@@ -107,4 +107,25 @@ test_expect_success 'remote-tracking branches are
shortened correctly' '
test_cmp expect actual
'
+cat >expect.branch-r << EOF
+ origin/master
+ origin/other
+EOF
+
+test_expect_failure 'git branch -r should show remote-tracking branches' '
+ git branch -r >actual.branch-r &&
+ test_cmp expect.branch-r actual.branch-r
+'
+
+cat >expect.branch-a << EOF
+* master
+ peers/origin/heads/master
+ peers/origin/heads/other
+EOF
+
+test_expect_failure 'git branch -a should also show remote-tracking branches' '
+ git branch -a >actual.branch-a &&
+ test_cmp expect.branch-a actual.branch-a
+'
+
test_done
--
1.8.1.3.704.g33f7d4f
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html