commit 51c32763c2da763dfd11ac3644cd54c6099d673d from: Stefan Sperling date: Thu May 09 19:36:10 2019 UTC fix bogus sha1 calculation in got_object_tree_create() commit - 69960a46af3e7b725e6698e08dc508d7baf38831 commit + 51c32763c2da763dfd11ac3644cd54c6099d673d blob - 4d5481fdefec64ac6750ffd5fc41f691fe305e1f blob + 8c94148d642736807ad761ea0d23f5284eeee348 --- lib/object_create.c +++ lib/object_create.c @@ -221,6 +221,8 @@ got_object_tree_create(struct got_object_id **id, struct got_tree_entry *te; *id = NULL; + + SHA1Init(&sha1_ctx); SIMPLEQ_FOREACH(te, &entries->head, entry) { err = mode2str(modebuf, sizeof(modebuf), te->mode);