Commit 28e00681 by Joshua Peek

Ignore ref oid terminator

parent e60af904
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment