git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] checkout: add a test for creating a new branch with regexp as a starting point
@ 2010-07-29 22:01 Dmitry V. Levin
  2010-07-29 23:07 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 17+ messages in thread
From: Dmitry V. Levin @ 2010-07-29 22:01 UTC (permalink / raw)
  To: git

Reported-by: Ivan Zakharyaschev <imz@altlinux.org>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---

This is just a regression test for the bug.

 t/t2018-checkout-new-branch-by-regexp.sh |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100755 t/t2018-checkout-new-branch-by-regexp.sh

diff --git a/t/t2018-checkout-new-branch-by-regexp.sh b/t/t2018-checkout-new-branch-by-regexp.sh
new file mode 100755
index 0000000..78e54c5
--- /dev/null
+++ b/t/t2018-checkout-new-branch-by-regexp.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+test_description='checkout -b new_branch :/regexp'
+
+. ./test-lib.sh
+
+test_expect_success setup '
+	echo a > a &&
+	git add a &&
+	test_tick &&
+	git commit -m first &&
+	echo b > b &&
+	git add b &&
+	test_tick &&
+	git commit -m second
+'
+
+test_expect_success checkout '
+	git checkout -b new_branch :/first
+'
+
+test_done

-- 
ldv

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-08-05 21:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29 22:01 [PATCH] checkout: add a test for creating a new branch with regexp as a starting point Dmitry V. Levin
2010-07-29 23:07 ` Ævar Arnfjörð Bjarmason
2010-07-29 23:36   ` Thomas Rast
2010-07-30  8:44     ` Dmitry V. Levin
2010-07-30 11:54       ` Ævar Arnfjörð Bjarmason
2010-07-30 19:13         ` When to use test_commit (Re: [PATCH] checkout: add a test for creating a new branch with regexp as a starting point) Jonathan Nieder
2010-07-30 20:20           ` Ævar Arnfjörð Bjarmason
2010-07-31  0:18             ` [PATCH 1/2] test-lib.sh: introduce 4th argument to test_commit() specifying a tag name Dmitry V. Levin
2010-07-31  0:39               ` Ævar Arnfjörð Bjarmason
2010-07-31  1:56                 ` [PATCH 1/2 v2] " Dmitry V. Levin
2010-07-31 10:23                   ` Ævar Arnfjörð Bjarmason
2010-07-31  0:19             ` [PATCH 2/2] checkout: add a test for creating a new branch with regexp as a starting point Dmitry V. Levin
2010-07-31  0:44               ` Ævar Arnfjörð Bjarmason
2010-07-31  1:44                 ` [PATCH 2/2 v2] " Dmitry V. Levin
2010-07-31 10:24                   ` Ævar Arnfjörð Bjarmason
2010-08-05 21:24                     ` [PATCH 2/2 v3] " Dmitry V. Levin
2010-08-02 21:04     ` [PATCH] " Junio C Hamano

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).