[PATCH] fix t5300-pack-object.sh
The 'use packed deltified objects' test was flawed as it failed to remove the pack and index from the previous test, effectively preventing the desired pack from being exercised as objects could be found in that other pack instead. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
e8e91fece8
commit
82868f72b5
@ -116,7 +116,7 @@ test_expect_success \
|
|||||||
'use packed deltified objects' \
|
'use packed deltified objects' \
|
||||||
'GIT_OBJECT_DIRECTORY=.git2/objects &&
|
'GIT_OBJECT_DIRECTORY=.git2/objects &&
|
||||||
export GIT_OBJECT_DIRECTORY &&
|
export GIT_OBJECT_DIRECTORY &&
|
||||||
rm -f .git2/objects/pack/test-?.idx &&
|
rm .git2/objects/pack/test-* &&
|
||||||
cp test-2-${packname_2}.pack test-2-${packname_2}.idx .git2/objects/pack && {
|
cp test-2-${packname_2}.pack test-2-${packname_2}.idx .git2/objects/pack && {
|
||||||
git-diff-tree --root -p $commit &&
|
git-diff-tree --root -p $commit &&
|
||||||
while read object
|
while read object
|
||||||
|
Loading…
Reference in New Issue
Block a user