Commit Diff


commit - 675c7539c677a208d43573b3459ac144e7739b09
commit + 7a10a6257fd03dd02c6284428046abbe4456863e
blob - c1378d1455646e94cbb9862257c7c43f063eab0c
blob + 3b9b6d53cb993e8e19fa1b5be90afeeece004364
--- lib/worktree.c
+++ lib/worktree.c
@@ -2273,7 +2273,7 @@ got_worktree_commit(struct got_object_id **new_commit_
 	if (err)
 		goto done;
 	err = got_object_open_as_tree(&base_tree, repo,
-	    worktree->base_commit_id);
+	    base_commit->tree_id);
 	if (err)
 		goto done;