summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-08-09 14:39:56 -0500
committerJoshua Peek <josh@joshpeek.com>2012-08-09 14:39:56 -0500
commit28e0068172942433ae304c9f965ee73588498f49 (patch)
tree026e5237a90fd0e97a7151fbc2449a4680968be0
parente60af90498c5be3fc132901009f7d8fc8bb0087f (diff)
downloadlibgit2-28e0068172942433ae304c9f965ee73588498f49.tar.gz
Ignore ref oid terminator
-rw-r--r--src/refs.c10
1 files changed, 0 insertions, 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: