]> git.proxmox.com Git - libgit2.git/commitdiff
Stop returning incorrect error message
authorBen Straub <bs@github.com>
Fri, 14 Dec 2012 22:16:10 +0000 (14:16 -0800)
committerBen Straub <bs@github.com>
Fri, 14 Dec 2012 22:16:10 +0000 (14:16 -0800)
src/refs.c

index df533c95dfef75ef7c4e9fcd38811bdc5a938a2f..85813096b3a4f1ab4e03ad59b291a0d7b902bba5 100644 (file)
@@ -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)