And the prominent example of the deficiency are, as usual, the filesystems of Microsoft house. Signed-off-by: Alex Riesen <raa.lkml@xxxxxxxxx> --- t/t3700-add.sh | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-)
From 2e5bbfea6a3ee6ff8cf82599cec0e49de94d0631 Mon Sep 17 00:00:00 2001 From: Alex Riesen <raa.lkml@xxxxxxxxx> Date: Fri, 15 Aug 2008 09:00:54 +0200 Subject: [PATCH] Fix t3700 on filesystems which do not support question marks in names And the prominent example of the deficiency are, as usual, the filesystems of Microsoft house. Signed-off-by: Alex Riesen <raa.lkml@xxxxxxxxx> --- t/t3700-add.sh | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 77a782c..2fa907e 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -222,12 +222,17 @@ test_expect_success 'git add (add.ignore-errors = false)' ' ! ( git ls-files foo1 | grep foo1 ) ' -test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' ' - git reset --hard && - touch fo\?bar foobar && - git add '\''fo\?bar'\'' && - git ls-files fo\?bar | grep -F fo\?bar && - ! ( git ls-files foobar | grep foobar ) -' +if touch fo\?bar +then + test_expect_success 'git add '\''fo\?bar'\'' ignores foobar' ' + git reset --hard && + touch foobar && + git add '\''fo\?bar'\'' && + git ls-files fo\?bar | grep -F fo\?bar && + ! ( git ls-files foobar | grep foobar ) + ' +else + say "The filesystem does not support ? in names, some tests skipped" +fi test_done -- 1.6.0.rc2.68.g49fa3