t4014: fix for whitespace from "wc -l"
Some "wc" insist on putting a TAB in front of the number. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Jun 27, 2006 at 10:12 UTC
8780bd8fd2fb9a85c39de8d7d3105b94c6a9cf40
1 file changed
+4
-4
t/t4014-format-patch.sh
+4
-4
@@ -37,7 +37,7 @@ test_expect_success "format-patch --ignore-if-in-upstream" '
37
38
git format-patch --stdout master..side >patch0 &&
39
cnt=`grep "^From " patch0 | wc -l` &&
40
- test "$cnt" = 3
40
+ test $cnt = 3
41
42
'
43
@@ -46,7 +46,7 @@ test_expect_success "format-patch --ignore-if-in-upstream" '
46
git format-patch --stdout \
47
--ignore-if-in-upstream master..side >patch1 &&
48
cnt=`grep "^From " patch1 | wc -l` &&
49
- test "$cnt" = 2
49
+ test $cnt = 2
50
51
'
52
@@ -55,7 +55,7 @@ test_expect_success "format-patch result applies" '
55
git checkout -b rebuild-0 master &&
56
git am -3 patch0 &&
57
cnt=`git rev-list master.. | wc -l` &&
58
- test "$cnt" = 2
58
+ test $cnt = 2
59
'
60
61
test_expect_success "format-patch --ignore-if-in-upstream result applies" '
@@ -63,7 +63,7 @@ test_expect_success "format-patch --ignore-if-in-upstream result applies" '
63
git checkout -b rebuild-1 master &&
64
git am -3 patch1 &&
65
cnt=`git rev-list master.. | wc -l` &&
66
- test "$cnt" = 2
66
+ test $cnt = 2
67
'
68
69
test_done