Adjust tests for not quoting SP.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 17, 2005 at 13:32 UTC
508c1d1c9b13f53783d024ccb28f77d0e6f10e7f
1 file changed
+11
-5
t/t3300-funny-names.sh
+11
-5
@@ -13,6 +13,7 @@ tree, index, and tree objects.
13
14
p0='no-funny'
15
p1='tabs and spaces'
16
+p2='just space'
17
18
cat >"$p0" <<\EOF
19
1. A quick brown fox jumps over the lazy cat, oops dog.
@@ -21,24 +22,28 @@ cat >"$p0" <<\EOF
22
EOF
23
24
cat >"$p1" "$p0"
25
+echo 'Foo Bar Baz' >"$p2"
26
25
-echo 'no-funny' >expected
27
+echo 'just space
28
+no-funny' >expected
29
test_expect_success 'git-ls-files no-funny' \
27
- 'git-update-index --add "$p0" &&
30
+ 'git-update-index --add "$p0" "$p2" &&
31
git-ls-files >current &&
32
diff -u expected current'
33
34
t0=`git-write-tree`
35
echo "$t0" >t0
36
34
-echo 'no-funny
37
+echo 'just space
38
+no-funny
39
"tabs\tand spaces"' >expected
40
test_expect_success 'git-ls-files with-funny' \
41
'git-update-index --add "$p1" &&
42
git-ls-files >current &&
43
diff -u expected current'
44
41
-echo 'no-funny
45
+echo 'just space
46
+no-funny
47
tabs and spaces' >expected
48
test_expect_success 'git-ls-files -z with-funny' \
49
'git-ls-files -z | tr \\0 \\012 >current &&
@@ -47,7 +52,8 @@ test_expect_success 'git-ls-files -z with-funny' \
52
t1=`git-write-tree`
53
echo "$t1" >t1
54
50
-echo 'no-funny
55
+echo 'just space
56
+no-funny
57
"tabs\tand spaces"' >expected
58
test_expect_success 'git-ls-tree with funny' \
59
'git-ls-tree -r $t1 | sed -e "s/^[^ ]* //" >current &&