From 28e0068172942433ae304c9f965ee73588498f49 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 9 Aug 2012 14:39:56 -0500 Subject: [PATCH] Ignore ref oid terminator --- src/refs.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/refs.c b/src/refs.c index 2f1292b0b..270e7e8e6 100644 --- a/src/refs.c +++ b/src/refs.c @@ -180,16 +180,6 @@ static int loose_parse_oid(git_oid *oid, git_buf *file_content) if (git_oid_fromstr(oid, buffer) < 0) goto corrupt; - buffer = buffer + GIT_OID_HEXSZ; - if (*buffer == '\r') - buffer++; - - if (*buffer == '\n') - buffer++; - - if (*buffer != '\0') - goto corrupt; - return 0; corrupt: