summaryrefslogtreecommitdiff
path: root/t/t5300-pack-object.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-27 18:51:23 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-27 19:08:57 (GMT)
commit8eafa3da62297eb91741321281fd3fb2a4236e97 (patch)
tree27109acfe1722ebb9cfd956dbeb6928f4f6f2bd6 /t/t5300-pack-object.sh
parent08337a97a2756cd89ab611444f37d67250d3c05b (diff)
downloadgit-8eafa3da62297eb91741321281fd3fb2a4236e97.zip
git-8eafa3da62297eb91741321281fd3fb2a4236e97.tar.gz
git-8eafa3da62297eb91741321281fd3fb2a4236e97.tar.bz2
Guard a test against wc that pads its output with whitespace
Spotted by Johannes. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-xt/t5300-pack-object.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 1510ea9..de45ac4 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack-object.sh
@@ -168,7 +168,7 @@ test_expect_success \
: sum of the index file itself &&
l=`wc -c <test-3.idx` &&
- l=`expr "$l" - 20` &&
+ l=`expr $l - 20` &&
cp test-1-${packname_1}.pack test-3.pack &&
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
if git-verify-pack test-3.pack