From: Johan Herland Date: Sat, 11 May 2013 16:21:16 GMT Subject: [PATCHv2 06/10] t7900: Test git branch -r/-a output w/remote-tracking branches in refs/peers/* Message-ID: <1368289280-30337-7-git-send-email-johan@herland.net> In-Reply-To: <1368289280-30337-1-git-send-email-johan@herland.net> These tests will be made to pass by subsequent patches. Signed-off-by: Johan Herland --- 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