Code

Reject hexstring longer than 40-bytes in get_short_sha1()
authorpclouds@gmail.com <pclouds@gmail.com>
Thu, 19 Oct 2006 01:34:41 +0000 (08:34 +0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 19 Oct 2006 04:21:50 +0000 (21:21 -0700)
commit8a83157e04e8f9654b3573cf04276895b1cbd68a
tree569384c85d49f1d0f981d594e1d4de424b9d464c
parent1a3b55c6b424904835ebfd74c992a5bffbaa7e7e
Reject hexstring longer than 40-bytes in get_short_sha1()

Such a string can never be a valid object name.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c