summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/git/pack.c')
-rw-r--r--sys/src/cmd/git/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/git/pack.c b/sys/src/cmd/git/pack.c
index 847d931fe..893e4cd85 100644
--- a/sys/src/cmd/git/pack.c
+++ b/sys/src/cmd/git/pack.c
@@ -1326,7 +1326,7 @@ loadtree(Metavec *v, Objset *has, Hash tree, char *dpath, vlong mtime)
if(t->type != GTree){
fprint(2, "load: %H: not tree\n", t->hash);
unref(t);
- return -1;
+ return 0;
}
addmeta(v, has, t, dpath, mtime);
for(i = 0; i < t->tree->nent; i++){
@@ -1363,7 +1363,7 @@ loadcommit(Metavec *v, Objset *has, Hash h)
if(c->type != GCommit){
fprint(2, "load: %H: not commit\n", c->hash);
unref(c);
- return -1;
+ return 0;
}
addmeta(v, has, c, "", c->commit->ctime);
r = loadtree(v, has, c->commit->tree, "", c->commit->ctime);