t5302: avoid using tail -c
A Large Angry SCM (gitzilla) noticed that on an unnamed platform, tail -c wants its byte count as part of the option, not as a separate argument. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Apr 23, 2007 at 22:05 UTC
bd4b0aeb1f4db2d7552623f77b62b9a24f8cac9e
1 file changed
+1
-1
t/t5302-pack-index.sh
+1
-1
@@ -16,7 +16,7 @@ test_expect_success \
16
test-genrandom "$i" 8192 >>file_$i &&
17
git-update-index --add file_$i || return 1
18
done &&
19
- echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&
19
+ { echo 101 && test-genrandom 100 8192; } >file_101 &&
20
git-update-index --add file_101 &&
21
tree=`git-write-tree` &&
22
commit=`git-commit-tree $tree </dev/null` && {