Commit 00f36e4705c823c9a2b0c558da9601d8da340d28

Stefan Sperling 2019-09-06T18:00:35

unstage may need to write 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 88baa51..4c8177b 100644
--- a/got/got.c
+++ b/got/got.c
@@ -6524,7 +6524,7 @@ cmd_unstage(int argc, char *argv[])
 		}
 	}
 
-	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;