mktag: call "check_sha1_signature" with the replacement sha1
commitcc400f50112a58471b992a54b1a05d99a8a82457
authorChristian Couder <chriscool@tuxfamily.org>
Fri, 23 Jan 2009 09:07:26 +0000 (23 10:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2009 00:02:59 +0000 (31 17:02 -0700)
treed6f0e37bf8d3c05630dee2fe3b68bd0f075322bc
parenta3e826722515ec8abed8ccf29d958eb52d4be3f8
mktag: call "check_sha1_signature" with the replacement sha1

Otherwise we get a "sha1 mismatch" error for replaced objects.

Note that I am not sure at all that this is a good change.
It may be that we should just refuse to tag a replaced object. But
in this case we should probably give a meaningfull error message
instead of "sha1 mismatch".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mktag.c
t/t6050-replace.sh