mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
t5701: "wc -l" may add whitespace
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user