summaryrefslogtreecommitdiff
path: root/builtin/add.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-16 04:39:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-16 04:39:04 (GMT)
commitcc24a7fbe51a4f015ec381af2c59fe9e76d90a72 (patch)
tree9528df7a65945b4c56d5ec01e1bc2d5edaabafa4 /builtin/add.c
parentf247b10aa0f75727f1b4bdd67b060720b8219b29 (diff)
parent6ff2b729debc07fce5c5c1226f9fee9ea59cd7ab (diff)
downloadgit-cc24a7fbe51a4f015ec381af2c59fe9e76d90a72.zip
git-cc24a7fbe51a4f015ec381af2c59fe9e76d90a72.tar.gz
git-cc24a7fbe51a4f015ec381af2c59fe9e76d90a72.tar.bz2
Merge branch 'ar/clone-honor-umask-at-top'
A handful of files and directories we create had tighter than necessary permission bits when the user wanted to have group writability (e.g. by setting "umask 002"). * ar/clone-honor-umask-at-top: add: create ADD_EDIT.patch with mode 0666 rerere: make rr-cache fanout directory honor umask Restore umasks influence on the permissions of work tree created by clone
Diffstat (limited to 'builtin/add.c')
-rw-r--r--builtin/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 87446cf..89dce56 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -281,7 +281,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
argc = setup_revisions(argc, argv, &rev, NULL);
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
- out = open(file, O_CREAT | O_WRONLY, 0644);
+ out = open(file, O_CREAT | O_WRONLY, 0666);
if (out < 0)
die (_("Could not open '%s' for writing."), file);
rev.diffopt.file = xfdopen(out, "w");