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

[PATCH] Fix t3700 on filesystems which do not support question marks in names

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 15, 2008, 07:32 UTC
Message-ID
<81b0412b0808150032o20f69346jb4f573b78cd11f2b@mail.gmail.com>
In-Reply-To
<81b0412b0808150023sd30559fi68ff1e439013f26e@mail.gmail.com>
Use square brackets instead.

And the prominent example of the deficiency are, as usual, the filesystems of Microsoft house.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
2008/8/15 Junio C Hamano <gitster@pobox.com>:
Show 7 quoted lines
>>> And the prominent example of the deficiency are, as usual, the filesystems
>>> of Microsoft house.
>>
>> Can other glob specials such as '*' or '[' be used instead of skipping the
>> test?
>
> Ah... The brackets are allowed.
Sorry, should have thought of it.
 t/t3700-add.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
From 3a25527fa61463d5968586efa1f3474008bbe2d4 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Fri, 15 Aug 2008 09:00:54 +0200
Subject: [PATCH] Fix t3700 on filesystems which do not support question marks in names
Use square brackets instead.

And the prominent example of the deficiency are, as usual, the filesystems of Microsoft house.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t3700-add.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index 77a782c..2ac93a3 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -222,11 +222,11 @@ test_expect_success 'git add (add.ignore-errors = false)' '
 	! ( git ls-files foo1 | grep foo1 )
 '
 
-test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' '
+test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' '
 	git reset --hard &&
-	touch fo\?bar foobar &&
-	git add '\''fo\?bar'\'' &&
-	git ls-files fo\?bar | grep -F fo\?bar &&
+	touch fo\[ou\]bar foobar &&
+	git add '\''fo\[ou\]bar'\'' &&
+	git ls-files fo\[ou\]bar | grep -F fo\[ou\]bar &&
 	! ( git ls-files foobar | grep foobar )
 '
 
-- 
1.6.0.rc2.68.g49fa3
Previous: Alex RiesenNext: Kevin Ballard
Message 4 of 7 in “Fix t3700 on filesystems which do not support question marks in names”
  1. Fix t3700 on filesystems which do not support question marks in namesAlex Riesen, Aug 15, 2008
  2. Junio C HamanoAug 15, 2008
  3. Alex RiesenAug 15, 2008
  4. Fix t3700 on filesystems which do not support question marks in namesAlex Riesen, Aug 15, 2008
  5. Kevin BallardAug 15, 2008
  6. Kevin BallardAug 15, 2008
  7. Junio C HamanoAug 15, 2008

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.