]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5505-remote.sh
Merge branch 'jc/maint-am-keep'
[thirdparty/git.git] / t / t5505-remote.sh
index 852ccb5d7d649a71eeab25eadce6940b9c2a6f63..fd166d9de356dafb000504506285a6f77fcc0a37 100755 (executable)
@@ -158,7 +158,7 @@ cat > test/expect << EOF
     another
     master
   Local refs configured for 'git push':
-    ahead  forces to master  (fast forwardable)
+    ahead  forces to master  (fast-forwardable)
     master pushes to another (up to date)
 EOF
 
@@ -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