diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-15 21:39:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-15 21:39:04 -0700 |
commit | cc24a7fbe51a4f015ec381af2c59fe9e76d90a72 (patch) | |
tree | 9528df7a65945b4c56d5ec01e1bc2d5edaabafa4 /builtin/clone.c | |
parent | Merge branch 'jc/apply-3way' (diff) | |
parent | add: create ADD_EDIT.patch with mode 0666 (diff) | |
download | tgif-cc24a7fbe51a4f015ec381af2c59fe9e76d90a72.tar.xz |
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/clone.c')
-rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index d3b7fdccec..e314b0b6d2 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -708,7 +708,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix) if (safe_create_leading_directories_const(work_tree) < 0) die_errno(_("could not create leading directories of '%s'"), work_tree); - if (!dest_exists && mkdir(work_tree, 0755)) + if (!dest_exists && mkdir(work_tree, 0777)) die_errno(_("could not create work tree dir '%s'."), work_tree); set_git_work_tree(work_tree); |