Stop returning incorrect error message
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)