Make sure get_sha1 does not accept ambiguous sha1 prefix (again).
commit0bc458902020b705fa913ca340aa40fea0f87096
authorJunio C Hamano <junkio@cox.net>
Mon, 3 Oct 2005 04:40:51 +0000 (2 21:40 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 4 Oct 2005 01:50:06 +0000 (3 18:50 -0700)
tree52c945002cbd00b8fa72792ee4cd1c94d862abf7
parent619e5a0ed4a53653085961b7aefe1f93ed879949
Make sure get_sha1 does not accept ambiguous sha1 prefix (again).

The earlier fix incorrectly dropped the code the original had to
ensure the found SHA1 is at least unique within the same pack.
Restore the check.

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