summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-12-30 22:25:30 -0800
committerShawn O. Pearce <spearce@spearce.org>2008-12-30 22:25:30 -0800
commit4c67e2e95f0bb6f0e214bd7bf052f914d365f129 (patch)
treeae5ceb4b269403c6d1653c7bb32e71ede7398892
parent064301cc3528ec3bccd07dafe9af824d87a50dba (diff)
downloadlibgit2-4c67e2e95f0bb6f0e214bd7bf052f914d365f129.tar.gz
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>
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
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;
}