Commit 9fd7cd228e1a6050e9612e360413cf6bad907bce

Stefan Sperling 2019-08-30T15:15:11

'got stage' writes to repository, fix unveil(2) call accordingly

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index f3dfdce..88baa51 100644
--- a/got/got.c
+++ b/got/got.c
@@ -6416,7 +6416,7 @@ cmd_stage(int argc, char *argv[])
 			goto done;
 		}
 	}
-	error = apply_unveil(got_repo_get_path(repo), 1,
+	error = apply_unveil(got_repo_get_path(repo), 0,
 	    got_worktree_get_root_path(worktree));
 	if (error)
 		goto done;