From 4c67e2e95f0bb6f0e214bd7bf052f914d365f129 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 30 Dec 2008 22:25:30 -0800 Subject: [PATCH] Change git_odb__read_packed to return ENOTFOUND until implemented We didn't search for the object, so we cannot possibly promise it to the caller of git_odb_read(). Signed-off-by: Shawn O. Pearce --- src/odb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odb.c b/src/odb.c index c8df02975..f57c220bb 100644 --- a/src/odb.c +++ b/src/odb.c @@ -502,6 +502,6 @@ int git_odb__read_loose(git_obj *out, git_odb *db, const git_oid *id) int git_odb__read_packed(git_obj *out, git_odb *db, const git_oid *id) { - return GIT_SUCCESS; + return GIT_ENOTFOUND; }