Commit 28abb187c468f9dfc4bab9353fe4c8485ca09099

Ben Straub 2012-12-14T14:16:10

Stop returning incorrect error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refs.c b/src/refs.c
index df533c9..8581309 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -177,7 +177,7 @@ static int loose_parse_oid(git_oid *oid, git_buf *file_content)
 
 corrupted:
 	giterr_set(GITERR_REFERENCE, "Corrupted loose reference file");
-	return GIT_ENOTFOUND;
+	return -1;
 }
 
 static git_ref_t loose_guess_rtype(const git_buf *full_path)