summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28fba29)
raw | patch | inline | side by side (parent: 28fba29)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 17 Oct 2005 20:32:14 +0000 (13:32 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 18 Oct 2005 00:41:59 +0000 (17:41 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t3300-funny-names.sh | patch | blob | history |
diff --git a/t/t3300-funny-names.sh b/t/t3300-funny-names.sh
index 7e08eefd64f4d715142dc2c3845287b39bf4c2b5..ccd7063e97bda4c0d186404e90ab256eb2ee5853 100755 (executable)
--- a/t/t3300-funny-names.sh
+++ b/t/t3300-funny-names.sh
p0='no-funny'
p1='tabs and spaces'
+p2='just space'
cat >"$p0" <<\EOF
1. A quick brown fox jumps over the lazy cat, oops dog.
EOF
cat >"$p1" "$p0"
+echo 'Foo Bar Baz' >"$p2"
-echo 'no-funny' >expected
+echo 'just space
+no-funny' >expected
test_expect_success 'git-ls-files no-funny' \
- 'git-update-index --add "$p0" &&
+ 'git-update-index --add "$p0" "$p2" &&
git-ls-files >current &&
diff -u expected current'
t0=`git-write-tree`
echo "$t0" >t0
-echo 'no-funny
+echo 'just space
+no-funny
"tabs\tand spaces"' >expected
test_expect_success 'git-ls-files with-funny' \
'git-update-index --add "$p1" &&
git-ls-files >current &&
diff -u expected current'
-echo 'no-funny
+echo 'just space
+no-funny
tabs and spaces' >expected
test_expect_success 'git-ls-files -z with-funny' \
'git-ls-files -z | tr \\0 \\012 >current &&
t1=`git-write-tree`
echo "$t1" >t1
-echo 'no-funny
+echo 'just space
+no-funny
"tabs\tand spaces"' >expected
test_expect_success 'git-ls-tree with funny' \
'git-ls-tree -r $t1 | sed -e "s/^[^ ]* //" >current &&