Skip to content

Commit

Permalink
Fix ensure_empty_tree to create a tree object
Browse files Browse the repository at this point in the history
facepalm.
  • Loading branch information
glandium committed Oct 3, 2023
1 parent c0b2878 commit d81234a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cinnabar-fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ const struct object_id *ensure_empty_tree(void) {
if (!oe) {
struct object_id hash;
struct strbuf buf = STRBUF_INIT;
store_object(OBJ_BLOB, &buf, NULL, &hash, 0);
store_object(OBJ_TREE, &buf, NULL, &hash, 0);
assert(oidcmp(&hash, &empty_tree) == 0);
}
return &empty_tree;
Expand Down

0 comments on commit d81234a

Please sign in to comment.