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

[PATCH] Distinguish branches by more than case in tests.

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Apr 6, 2007, 05:42 UTC
Message-ID
<20070406054204.GA13108@Hermes.local>

The renaming without config test changed a branch from q to Q, which fails on non-case sensitive file systems. Change the test to use q and q2. ---

Notably, HFS+ is not case sensitive. IIRC there are others. This isn't a flaw of git, just a bad choice of branch names for certain systems.

 t/t3200-branch.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index ce2c5f4..3ca1a32 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -85,9 +85,9 @@ test_expect_failure \
 
 mv .git/config .git/config-saved
 
-test_expect_success 'git branch -m q Q without config should succeed' '
-	git-branch -m q Q &&
-	git-branch -m Q q
+test_expect_success 'git branch -m q q2 without config should succeed' '
+	git-branch -m q q2 &&
+	git-branch -m q2 q
 '
 
 mv .git/config-saved .git/config
-- 
1.5.1.32.gdd6cd
Next: Junio C Hamano
Message 1 of 8 in “Distinguish branches by more than case in tests.”
  1. Distinguish branches by more than case in tests.Brian Gernhardt, Apr 6, 2007
  2. Junio C HamanoApr 6, 2007
  3. Linus TorvaldsApr 6, 2007
  4. Randal L. SchwartzApr 6, 2007
  5. Bill LearApr 6, 2007
  6. Linus TorvaldsApr 6, 2007
  7. Bill LearApr 6, 2007
  8. Kyle McMartinApr 7, 2007

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.