From: Phillip Wood Date: Thu, 1 Mar 2018 10:50:58 +0000 (+0000) Subject: t3701: don't hard code sha1 hash values X-Git-Tag: v2.17.0-rc0~12^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/902f414a72b29ca9c6c575faf29cc2b0b8b4fe1c?hp=902f414a72b29ca9c6c575faf29cc2b0b8b4fe1c t3701: don't hard code sha1 hash values Use a filter when comparing diffs to fix the value of non-zero hashes in diff index lines so we're not hard coding sha1 hash values in the expected output. This makes it easier to change the expected output if a test is edited as we don't need to worry about the exact hash value and means the tests will work when the hash algorithm is transitioned away from sha1. Thanks-to: Junio C Hamano Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano ---