git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/5] Add missing test for 'git remote update --prune'

From
Björn Gustavsson <bgustavsson@gmail.com>
Date
Nov 9, 2009, 20:11 UTC
Message-ID
<4AF8778F.1090304@gmail.com>
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
---
 t/t5505-remote.sh |   11 +++++++++++
 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
-- 
1.6.5.1.69.g36942
Message 1 of 1 in “Add missing test for 'git remote update --prune'”
  1. 4/5 Add missing test for 'git remote update --prune'Björn Gustavsson, Nov 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.