Commit Diff


commit - 2ec1f75bbb4d6fb8f39613e5012392bae851aa8b
commit + c2253644018132a8c4b267e35612a927606904b5
blob - 9580988002d014eeb77fc0ac4b4948cf7d4ab414
blob + c37a9a280271db6641303be9f76910b0e5d5aa2c
--- got/got.c
+++ 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;