Add missing test for 'git remote update --prune'
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Björn Gustavsson committed
Nov 9, 2009 at 21:11 UTC
e2d41c64bfbea592daeb3a065f1aa3900a03e07f
1 file changed
+11
t/t5505-remote.sh
+11
@@ -365,6 +365,17 @@ test_expect_success 'update with arguments' '
365
366
'
367
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
+
379
cat > one/expect << EOF
380
apis/master
381
apis/side