author | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Oct 2005 04:40:51 +0000 (21:40 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Oct 2005 04:40:51 +0000 (21:40 -0700) | ||
commit | 99a19b43021024e12ddb67831f8e5919f86a5979 | |
tree | d2dee021c90705a5a6f0f13593c6673469df7377 | tree | snapshot |
parent | c807f771947de65dceb22960d1a093d702f42105 | commit | diff |
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>
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 | diff | blob | history |