[PATCH] commit: ensure correct permissions of the commit message
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 19, 2015, 18:21 UTC
- Message-ID
- <4aa11f02f4de113bf38152b8815658da42690f43.1450549280.git.johannes.schindelin@gmx.de>
It was pointed out by Yaroslav Halchenko that the file containing the commit message had the wrong permissions in a shared setting.
Let's fix that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- builtin/commit.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/builtin/commit.c b/builtin/commit.c index d054f84..3bfd457 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -905,6 +905,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, strbuf_release(&committer_ident); fclose(s->fp); + adjust_shared_perm(git_path(commit_editmsg)); /* * Reject an attempt to record a non-merge empty commit without
-- 2.6.3.windows.1.300.g1c25e49