Commit efcae1c6b4f75d8d4ac062a029c8c2e038aec2f9

Stefan Sperling 2019-03-07T12:46:59

unveil worktree in cmd_log(); fixes 'got log path/to/file'

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 37ac5ae..378b382 100644
--- a/got/got.c
+++ b/got/got.c
@@ -844,7 +844,8 @@ cmd_log(int argc, char *argv[])
 		goto done;
 	}
 
-	error = apply_unveil(repo_path, NULL);
+	error = apply_unveil(repo_path,
+	    worktree ? got_worktree_get_root_path(worktree) : NULL);
 	if (error)
 		goto done;