# [PATCH] Add branch test case: create "j/k" when "j" has been deleted.

2 messages from 2006-09-20 to 2006-09-20. Participants: Christian Couder, Junio C Hamano.
Thread: https://gitlist.dev/t/5617

## Christian Couder, 2006-09-20 05:03

Subject: [PATCH] Add branch test case: create "j/k" when "j" has been deleted.
Message-ID: <20060920070350.29039f28.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/20060920070350.29039f28.chriscool%40tuxfamily.org

```
Linus wrote:
"Somebody should add this test-case

        git branch test
        git branch -d test
        git branch test/first

which should work."

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 t/t3200-branch.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 5b04efc..d863498 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -61,4 +61,11 @@ test_expect_success \
 	 test -f .git/logs/refs/heads/g/h/i &&
 	 diff expect .git/logs/refs/heads/g/h/i'
 
+test_expect_success \
+    'git branch j/k should work after branch j has been deleted' \
+	'git-branch j &&
+	 git-branch -d j &&
+	 git-branch j/k'
+
+
 test_done
-- 
1.4.2.1.g251a

```

## Junio C Hamano, 2006-09-20 07:39

Subject: Re: [PATCH] Add branch test case: create "j/k" when "j" has been deleted.
Message-ID: <7vy7sfkmvr.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vy7sfkmvr.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20060920070350.29039f28.chriscool@tuxfamily.org>

```
Christian Couder <chriscool@tuxfamily.org> writes:

> Linus wrote:
> "Somebody should add this test-case
>
>         git branch test
>         git branch -d test
>         git branch test/first
>
> which should work."
>
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

If you add this, please add its dual test as well, otherwise we
will certainly forget.

```
