diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-22 13:04:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-22 13:04:05 -0700 |
commit | 7046e7582121a8b7b9d126b492cb439631843444 (patch) | |
tree | 0411e587b0632f704c25a69602ab82ac54574a5f /builtin/add.c | |
parent | c9603dfae5856aba6a8ed64719a2e73da066ad84 (diff) | |
parent | 6ff2b729debc07fce5c5c1226f9fee9ea59cd7ab (diff) | |
download | git-7046e7582121a8b7b9d126b492cb439631843444.tar.gz git-7046e7582121a8b7b9d126b492cb439631843444.tar.xz |
Merge branch 'ar/clone-honor-umask-at-top' into maint
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c index 87446cf92..89dce56a2 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"); |