aboutsummaryrefslogtreecommitdiff
path: root/t/t0008-ignores.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-09 07:26:38 +0700
committerJunio C Hamano <gitster@pobox.com>2014-02-10 11:49:53 -0800
commit7e2e4b37d3d57a95a525ba1a18224ba04f858768 (patch)
tree4f4db8edbe17b887b4c641c34a59c824a16f5a68 /t/t0008-ignores.sh
parent16402b992e0332d2ac68106f4488b47175bf0a13 (diff)
downloadgit-7e2e4b37d3d57a95a525ba1a18224ba04f858768.tar.gz
git-7e2e4b37d3d57a95a525ba1a18224ba04f858768.tar.xz
dir: ignore trailing spaces in exclude patterns
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0008-ignores.sh')
-rwxr-xr-xt/t0008-ignores.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh
index 9e1d64c6a..bbaf6b5e9 100755
--- a/t/t0008-ignores.sh
+++ b/t/t0008-ignores.sh
@@ -779,18 +779,18 @@ test_expect_success PIPE 'streaming support for --stdin' '
#
# test whitespace handling
-test_expect_success 'trailing whitespace is warned' '
+test_expect_success 'trailing whitespace is ignored' '
mkdir whitespace &&
>whitespace/trailing &&
>whitespace/untracked &&
echo "whitespace/trailing " >ignore &&
cat >expect <<EOF &&
-whitespace/trailing
whitespace/untracked
EOF
+ : >err.expect &&
git ls-files -o -X ignore whitespace >actual 2>err &&
- grep "ignore:.*'\''whitespace/trailing '\''" err &&
- test_cmp expect actual
+ test_cmp expect actual &&
+ test_cmp err.expect err
'
test_expect_success 'quoting allows trailing whitespace' '