summaryrefslogtreecommitdiff
path: root/t/t5302-pack-index.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-23 22:05:22 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-23 22:05:22 -0700
commitbd4b0aeb1f4db2d7552623f77b62b9a24f8cac9e (patch)
treeea4b5cda22eb519440684271843bce6ff73433c6 /t/t5302-pack-index.sh
parent557b1e0da595cfb61f9500bd8dd74a32f97616ff (diff)
downloadgit-bd4b0aeb1f4db2d7552623f77b62b9a24f8cac9e.tar.gz
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>
Diffstat (limited to 't/t5302-pack-index.sh')
-rwxr-xr-xt/t5302-pack-index.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh
index 232e5f1964..6902fc6d48 100755
--- a/t/t5302-pack-index.sh
+++ b/t/t5302-pack-index.sh
@@ -16,7 +16,7 @@ test_expect_success \
test-genrandom "$i" 8192 >>file_$i &&
git-update-index --add file_$i || return 1
done &&
- echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&
+ { echo 101 && test-genrandom 100 8192; } >file_101 &&
git-update-index --add file_101 &&
tree=`git-write-tree` &&
commit=`git-commit-tree $tree </dev/null` && {