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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user