Commit 8c02d095937330301b9330951e3c67be5488620a

Stefan Sperling 2019-02-05T17:49:01

make 'got update' unveil the root dir of the worktree

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;