Skip to content

Commit e2d41c6

Browse files
bjornggitster
authored andcommitted
Add missing test for 'git remote update --prune'
Signed-off-by: Björn Gustavsson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7cc91a2 commit e2d41c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t5505-remote.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,17 @@ test_expect_success 'update with arguments' '
365365
366366
'
367367

368+
test_expect_success 'update --prune' '
369+
370+
(cd one &&
371+
git branch -m side2 side3) &&
372+
(cd test &&
373+
git remote update --prune &&
374+
(cd ../one && git branch -m side3 side2)
375+
git rev-parse refs/remotes/origin/side3 &&
376+
test_must_fail git rev-parse refs/remotes/origin/side2)
377+
'
378+
368379
cat > one/expect << EOF
369380
apis/master
370381
apis/side

0 commit comments

Comments
 (0)