diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-02-09 07:26:38 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-10 11:49:53 -0800 |
commit | 7e2e4b37d3d57a95a525ba1a18224ba04f858768 (patch) | |
tree | 4f4db8edbe17b887b4c641c34a59c824a16f5a68 /t | |
parent | dir: warn about trailing spaces in exclude patterns (diff) | |
download | tgif-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')
-rwxr-xr-x | t/t0008-ignores.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh index 9e1d64c6ac..bbaf6b5e9e 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' ' |