Commit 728ed14252dde2c08f3ceee67554ee397ac7921d

Omar Polo 2022-04-19T15:09:57

simplify apply_unveil in cmd_patch: the worktree is not optional

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 879f86c..0e1d784 100644
--- a/got/got.c
+++ b/got/got.c
@@ -7292,7 +7292,7 @@ cmd_patch(int argc, char *argv[])
 		goto done;
 
 	error = apply_unveil(got_repo_get_path(repo), 0,
-	    worktree ? got_worktree_get_root_path(worktree) : NULL);
+	    got_worktree_get_root_path(worktree));
 	if (error != NULL)
 		goto done;