summaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2007-03-20 17:05:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-21 05:17:17 (GMT)
commitacdeec62cb644e48436bbe931e69b3d4842344cb (patch)
treef439c7cfd019cdd07fb83e950205fc4ec9af5619 /builtin-for-each-ref.c
parent9096c660a85c4a3d30f8885c766c34ce0766e869 (diff)
downloadgit-acdeec62cb644e48436bbe931e69b3d4842344cb.zip
git-acdeec62cb644e48436bbe931e69b3d4842344cb.tar.gz
git-acdeec62cb644e48436bbe931e69b3d4842344cb.tar.bz2
Don't ever return corrupt objects from "parse_object()"
Looking at the SHA1 validation code due to the corruption that Alexander Litvinov is seeing under Cygwin, I notice that one of the most central places where we read objects, we actually do end up verifying the SHA1 of the result, but then we happily parse it anyway. And using "printf" to write the error message means that it not only can get lost, but will actually mess up stdout, and cause other strange and hard-to-debug failures downstream. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-for-each-ref.c')
0 files changed, 0 insertions, 0 deletions