Skip to content

Commit

Permalink
packs: ...saving before commmitting helps.
Browse files Browse the repository at this point in the history
The correct change was sitting in my editor buffer.
  • Loading branch information
oridb committed Feb 24, 2021
1 parent 7e8b355 commit a18673d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1323,9 +1323,9 @@ loadtree(Metavec *v, Objset *has, Hash tree, char *dpath, vlong mtime)
return 0;
if((t = readobject(tree)) == nil)
return -1;
if(c->type != GTree){
fprint(2, "load: %H: not tree\n", c->hash);
unref(c);
if(t->type != GTree){
fprint(2, "load: %H: not tree\n", t->hash);
unref(t);
return -1;
}
addmeta(v, has, t, dpath, mtime);
Expand Down

0 comments on commit a18673d

Please sign in to comment.