From 28abb187c468f9dfc4bab9353fe4c8485ca09099 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Fri, 14 Dec 2012 14:16:10 -0800 Subject: [PATCH] Stop returning incorrect error message --- src/refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/refs.c b/src/refs.c index df533c95d..85813096b 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)