#!/bin/sh # # Copyright (c) 2005 Junio C Hamano # test_description='git-pack-object ' . ./test-lib.sh TRASH=`pwd` test_expect_success \ 'setup' \ 'rm -f .git/index* for i in a b c do dd if=/dev/zero bs=4k count=1 | tr "\\0" $i >$i && git-update-cache --add $i || exit done && cat c >d && echo foo >>d && git-update-cache --add d && tree=`git-write-tree` && { echo $tree && git-ls-tree $tree | sed -e "s/.* \\([0-9a-f]*\\) .*/\\1/" } >obj-list' test_expect_success \ 'pack without delta' \ 'git-pack-objects --window=0 test-1