Make sure get_sha1 does not accept ambiguous sha1 prefix.
commit99a19b43021024e12ddb67831f8e5919f86a5979
authorJunio C Hamano <junkio@cox.net>
Mon, 3 Oct 2005 04:40:51 +0000 (2 21:40 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 3 Oct 2005 04:40:51 +0000 (2 21:40 -0700)
treed2dee021c90705a5a6f0f13593c6673469df7377
parentc807f771947de65dceb22960d1a093d702f42105
Make sure get_sha1 does not accept ambiguous sha1 prefix.

The original code did not even check alternates, and was confused if
an unpacked object was uniquely found when there was another object
that shares the same prefix in the pack.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c