Commit 4c67e2e95f0bb6f0e214bd7bf052f914d365f129

Shawn O. Pearce 2008-12-30T22:25:30

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 <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/odb.c b/src/odb.c
index c8df029..f57c220 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;
 }