summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-14 14:16:10 -0800
committerBen Straub <bs@github.com>2012-12-14 14:16:10 -0800
commit28abb187c468f9dfc4bab9353fe4c8485ca09099 (patch)
treef70b7283fb3d3015017912103a1754f98bebfdc4
parent57f5d8dca5e5d080c59fe0dc3e2221dabd9d4c2c (diff)
downloadlibgit2-28abb187c468f9dfc4bab9353fe4c8485ca09099.tar.gz
Stop returning incorrect error message
-rw-r--r--src/refs.c2
1 files changed, 1 insertions, 1 deletions
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)