git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: david@statichacks.org
To: git@vger.kernel.org
Cc: David Bryson <david@statichacks.org>
Subject: [PATCH] Added test case for mirror to not push stash refs
Date: Thu,  6 Nov 2008 09:39:14 -0800	[thread overview]
Message-ID: <1225993154-3685-1-git-send-email-david@statichacks.org> (raw)
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

      parent reply	other threads:[~2008-11-06 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07  0:34 error pushing stash ? David Bryson
2008-10-07  0:40 ` Shawn O. Pearce
2008-10-28 21:17   ` Jeff King
2008-10-28 21:23     ` Jeff King
2008-11-06  3:33       ` [PATCH] Added test case for mirror to not push stash refs david
2008-11-06  8:34         ` Sverre Rabbelier
2008-11-06 16:58           ` Junio C Hamano
2008-11-06 17:39       ` david [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1225993154-3685-1-git-send-email-david@statichacks.org \
    --to=david@statichacks.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).