summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-17 20:32:14 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-18 00:41:59 (GMT)
commit508c1d1c9b13f53783d024ccb28f77d0e6f10e7f (patch)
treecaea7fb30e8c74009b4b8107b3e662a46d522bbd /t
parent28fba290e3868a41e36379906407cf318cedfe57 (diff)
downloadgit-508c1d1c9b13f53783d024ccb28f77d0e6f10e7f.zip
git-508c1d1c9b13f53783d024ccb28f77d0e6f10e7f.tar.gz
git-508c1d1c9b13f53783d024ccb28f77d0e6f10e7f.tar.bz2
Adjust tests for not quoting SP.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t3300-funny-names.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/t/t3300-funny-names.sh b/t/t3300-funny-names.sh
index 7e08eef..ccd7063 100755
--- a/t/t3300-funny-names.sh
+++ b/t/t3300-funny-names.sh
@@ -13,6 +13,7 @@ tree, index, and tree objects.
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.
@@ -21,24 +22,28 @@ cat >"$p0" <<\EOF
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 &&
@@ -47,7 +52,8 @@ test_expect_success 'git-ls-files -z with-funny' \
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 &&