]> git.ipfire.org Git - thirdparty/git.git/commit
t: add helper to convert object IDs to paths
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 28 Jun 2019 22:59:19 +0000 (22:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2019 20:28:18 +0000 (13:28 -0700)
commit56d889245984228aaba4d85f0afe94bd46fe59ab
tree628e041d9ab4274684c08439b2d14c74a8c73b8b
parent8dca754b1e874719a732bc9ab7b0e14b21b1bc10
t: add helper to convert object IDs to paths

There are several places in our testsuite where we want to insert a
slash after an object ID to make it into a path we can reference under
.git/objects, and we have various ways of doing so.  Add a helper to
provide a standard way of doing this that works for all size hashes.

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