]> git.ipfire.org Git - thirdparty/git.git/commit
t3301: abstract away SHA-1-specific constants
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 18 Aug 2019 19:16:35 +0000 (19:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Aug 2019 18:09:21 +0000 (11:09 -0700)
commitb408cf8cf67fdefa3cf72469599a407544624357
tree31a5b6cbdd7a03abdeedb933f93859b4254cfcf6
parentb561edd213f9a37e874e5726375d49e8f4d2037b
t3301: abstract away SHA-1-specific constants

Adjust the test so that it computes variables for object IDs instead of
using hard-coded hashes.  Move some invocations of test_commit around so
that we can compute the object IDs for these commits.

Compute several object IDs in the tests instead of using hard-coded
values so that the test works with any hash algorithm.  Since the actual
values are sorted by the object ID of the object being annotated, sort
the expected values accordingly as well.

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