t5300: pass --object-format to git index-pack
commit371c4079f4d14bd9412fc62478407b319f13e3e1
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 19 Jun 2020 17:55:59 +0000 (19 17:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2020 21:04:09 +0000 (19 14:04 -0700)
treea310f2b33411505d00156eed8678bdad7d6b1a3a
parent4ddd3f506390af217fb86508691cf07f3279e6d2
t5300: pass --object-format to git index-pack

git index-pack by default reads the repository to determine the object
format. However, when outside of a repository, it's necessary to specify
the hash algorithm in use so that the pack can be properly indexed. Add
an --object-format argument when invoking git index-pack outside of a
repository.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5300-pack-object.sh