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

[PATCH] Added test case for mirror to not push stash refs

From
david@statichacks.org <david@statichacks.org>
Date
Nov 6, 2008, 17:39 UTC
Message-ID
<1225993154-3685-1-git-send-email-david@statichacks.org>
In-Reply-To
<20081028212327.GA25358@sigill.intra.peff.net>
From: David Bryson <david@statichacks.org>
This test case checks to make sure mirror does not push stashed refs
---
 t/t5517-push-mirror.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/t/t5517-push-mirror.sh b/t/t5517-push-mirror.sh
index ea49ded..bb263cd 100755
--- a/t/t5517-push-mirror.sh
+++ b/t/t5517-push-mirror.sh
@@ -123,6 +123,16 @@ test_expect_success 'push mirror adds, updates and removes branches together' '
 
 '
 
+test_expect_success 'push mirror does not push stash refs' '
+
+	mk_repo_pair &&
+	(
+		cd master &&
+		echo foo >foo && git add foo && git commit -m 'foo' &&
+		echo bar >foo && git stash save 'WIP' &&
+		git push --mirror up
+	)
+'
 
 # TAG tests
 test_expect_success 'push mirror creates new tags' '
-- 
1.6.0.1
Previous: Junio C Hamano
Message 8 of 8 in “error pushing stash ?”
  1. David BrysonOct 7, 2008
  2. Shawn O. PearceOct 7, 2008
  3. Jeff KingOct 28, 2008
  4. Jeff KingOct 28, 2008
  5. Added test case for mirror to not push stash refsdavid@statichacks.org, Nov 6, 2008
  6. Sverre RabbelierNov 6, 2008
  7. Junio C HamanoNov 6, 2008
  8. Added test case for mirror to not push stash refsdavid@statichacks.org, Nov 6, 2008

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.