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

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

From
Christian Couder <chriscool@tuxfamily.org>
Date
Sep 20, 2006, 05:03 UTC
Message-ID
<20060920070350.29039f28.chriscool@tuxfamily.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
Next: Junio C Hamano
Message 1 of 2 in “Add branch test case: create "j/k" when "j" has been deleted.”
  1. Add branch test case: create "j/k" when "j" has been deleted.Christian Couder, Sep 20, 2006
  2. Junio C HamanoSep 20, 2006

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.