t5701: "wc -l" may add whitespace

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2007-08-29 17:43:02 +01:00
parent 194c1dbb5a
commit 5464a3f4b7

View File

@@ -54,8 +54,7 @@ test_expect_success 'With -no-hardlinks, local will make a copy' '
cd "$D" &&
git clone --bare --no-hardlinks x w &&
cd w &&
linked=$(find objects -type f ! -links 1 | wc -l) &&
test "$linked" = 0
test $(find objects -type f ! -links 1 | wc -l) = 0
'
test_expect_success 'Even without -l, local will make a hardlink' '
@@ -63,8 +62,7 @@ test_expect_success 'Even without -l, local will make a hardlink' '
rm -fr w &&
git clone -l --bare x w &&
cd w &&
copied=$(find objects -type f -links 1 | wc -l) &&
test "$copied" = 0
test $(find objects -type f -links 1 | wc -l) = 0
'
test_done