make 'got update' unveil the root dir of the worktree
diff --git a/got/got.c b/got/got.c
index 97264cf..a4dec16 100644
--- a/got/got.c
+++ b/got/got.c
@@ -497,7 +497,8 @@ cmd_update(int argc, char *argv[])
if (error != NULL)
goto done;
- error = apply_unveil(got_repo_get_path(repo), worktree_path);
+ error = apply_unveil(got_repo_get_path(repo),
+ got_worktree_get_root_path(worktree));
if (error)
goto done;