Commit 28e0068172942433ae304c9f965ee73588498f49

Joshua Peek 2012-08-09T14:39:56

Ignore ref oid terminator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/refs.c b/src/refs.c
index 2f1292b..270e7e8 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: