summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bgustavsson@gmail.com>2009-11-09 20:11:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 09:01:07 (GMT)
commite2d41c64bfbea592daeb3a065f1aa3900a03e07f (patch)
treeb9d87057d66d6fdbf00f27cc0f298cddcae10f8c
parent7cc91a2f71c95b4e695549b91c4b629f56887a1a (diff)
downloadgit-e2d41c64bfbea592daeb3a065f1aa3900a03e07f.zip
git-e2d41c64bfbea592daeb3a065f1aa3900a03e07f.tar.gz
git-e2d41c64bfbea592daeb3a065f1aa3900a03e07f.tar.bz2
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>
-rwxr-xr-xt/t5505-remote.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index 852ccb5..e931ce6 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -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