resolve_ref(): also treat a too-long SHA1 as invalid
commitf989fea0e0b47873de62a355f4766f03a88fb01b
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 15 Sep 2011 21:10:41 +0000 (15 23:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Oct 2011 20:45:31 +0000 (5 13:45 -0700)
tree6adaf0ef216fcff1b6bdb2c7291b58ed8e9ec917
parent629cd3ac6d081b43c8cdb045845be1fedbc89615
resolve_ref(): also treat a too-long SHA1 as invalid

If the SHA1 in a reference file is not terminated by a space or
end-of-file, consider it malformed and emit a warning.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c