Skip to content

Commit

Permalink
Add missing test for 'git remote update --prune'
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Björn Gustavsson authored and Junio C Hamano committed Nov 10, 2009
1 parent 7cc91a2 commit e2d41c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t5505-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,17 @@ test_expect_success 'update with arguments' '
'

test_expect_success 'update --prune' '
(cd one &&
git branch -m side2 side3) &&
(cd test &&
git remote update --prune &&
(cd ../one && git branch -m side3 side2)
git rev-parse refs/remotes/origin/side3 &&
test_must_fail git rev-parse refs/remotes/origin/side2)
'

cat > one/expect << EOF
apis/master
apis/side
Expand Down

0 comments on commit e2d41c6

Please sign in to comment.