Commit c2253644018132a8c4b267e35612a927606904b5

Stefan Sperling 2019-03-26T10:41:22

unveil repository path in 'got rm'

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 9580988..c37a9a2 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1957,7 +1957,8 @@ cmd_rm(int argc, char *argv[])
 	if (error != NULL)
 		goto done;
 
-	error = apply_unveil(NULL, 0, got_worktree_get_root_path(worktree));
+	error = apply_unveil(got_repo_get_path(repo), 1,
+	    got_worktree_get_root_path(worktree));
 	if (error)
 		goto done;