summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-22 20:04:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-22 20:04:05 (GMT)
commit7046e7582121a8b7b9d126b492cb439631843444 (patch)
tree0411e587b0632f704c25a69602ab82ac54574a5f /builtin/clone.c
parentc9603dfae5856aba6a8ed64719a2e73da066ad84 (diff)
parent6ff2b729debc07fce5c5c1226f9fee9ea59cd7ab (diff)
downloadgit-7046e7582121a8b7b9d126b492cb439631843444.zip
git-7046e7582121a8b7b9d126b492cb439631843444.tar.gz
git-7046e7582121a8b7b9d126b492cb439631843444.tar.bz2
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/clone.c')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index f86aaf1..920ef7f 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);