Commit Diff


commit - d4b2e62d5cb4bd0757706877687d1c2bcb15f30c
commit + fb077d79464b5f22bd16cb8b0ce4069c749115dd
blob - 06bece745d95816368ea9f44a65448af4a28fcf0
blob + 9ca2cf86ca1bf61c712330d9933d9bf241a80846
--- got/got.c
+++ got/got.c
@@ -9423,6 +9423,13 @@ cmd_commit(int argc, char *argv[])
 			goto done;
 		}
 	}
+	if (prepared_logmsg) {
+		if (unveil(prepared_logmsg, "r") != 0) {
+			error = got_error_from_errno2("unveil",
+			    prepared_logmsg);
+			goto done;
+		}
+	}
 
 	error = apply_unveil(got_repo_get_path(repo), 0,
 	    got_worktree_get_root_path(worktree));