t6030: make test work with SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 28 Jun 2019 22:59:23 +0000 (22:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2019 20:28:18 +0000 (13:28 -0700)
commit0795aed0a09deea5a6a51c08465f6703015871a7
treeed11295addbb1037e2d45bc5877026464ad24dfc
parent0b78a1b22a4461b1909b0716d1572d2119d1c450
t6030: make test work with SHA-256

Compute several object ID values instead of hard-coding them, and use
test_oid_to_path to cleanly produce a path for an object.

Note that the bisect code which is tested here remains sensitive to the
hash algorithm in use because it uses the object ID to disambiguate
between two equidistant commits.  Fortunately, SHA-1 and SHA-256
disambiguate identically in the cases we care about, so there is no need
to modify the test to accommodate this situation.  However, if a further
hash algorithm change occurs, this test may require some restructuring.

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