Merge branch 'sb/diff-color-move-more'
[gitweb.git] / t / t5310-pack-bitmaps.sh
index af387760549b62d1f537b3fc25be20c9c56e82e2..1be3459c5b8aa331a646e3ead24f7422110cdc08 100755 (executable)
@@ -335,7 +335,7 @@ test_expect_success 'truncated bitmap fails gracefully' '
        git rev-list --use-bitmap-index --count --all >expect &&
        bitmap=$(ls .git/objects/pack/*.bitmap) &&
        test_when_finished "rm -f $bitmap" &&
-       head -c 512 <$bitmap >$bitmap.tmp &&
+       test_copy_bytes 512 <$bitmap >$bitmap.tmp &&
        mv -f $bitmap.tmp $bitmap &&
        git rev-list --use-bitmap-index --count --all >actual 2>stderr &&
        test_cmp expect actual &&