Commit 9743083996cb3beca1525614b4cf4b8580fb9245

Stefan Sperling 2019-03-11T19:38:35

'got update' also needs repo write access now

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index ef9b7d3..f97925f 100644
--- a/got/got.c
+++ b/got/got.c
@@ -502,7 +502,7 @@ cmd_update(int argc, char *argv[])
 	if (error != NULL)
 		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;