Commit Diff


commit - b4d06cd8d261ba1fb3c2c16b4b6572f5c7f366c2
commit + a77eefc7ca20d88114f90a1ce8209051633444ed
blob - 2bafcaf1ce32c0c0acb7afe62701ecb9e576c008
blob + e43b5b4df2fa845961755d838fde01b565897698
--- got/got.c
+++ 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;