commit a705578854409cad08854ff1d403dc1f0fc62084 from: Stefan Sperling date: Thu May 09 19:36:10 2019 UTC pass the right path to got_object_blob_create() commit - 563fca6e4a33fd3582610c2a357360608202d4e5 commit + a705578854409cad08854ff1d403dc1f0fc62084 blob - 1d24f56dd3cbe555b2ddaed8405ca9a55d3ad36d blob + 6eb8ace4f640bae56a1ee480b854f7f9557e96ff --- lib/worktree.c +++ lib/worktree.c @@ -2296,7 +2296,8 @@ got_worktree_commit(struct got_object_id **new_commit_ err = got_error_from_errno(); goto done; } - err = got_object_blob_create(&ct->id, pe->path, repo); + err = got_object_blob_create(&ct->id, ondisk_path, repo); + free(ondisk_path); if (err) goto done; }