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 /rerere.c | |
parent | f247b10aa0f75727f1b4bdd67b060720b8219b29 (diff) | |
parent | 6ff2b729debc07fce5c5c1226f9fee9ea59cd7ab (diff) | |
download | git-cc24a7fbe51a4f015ec381af2c59fe9e76d90a72.tar.gz git-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 'rerere.c')
-rw-r--r-- | rerere.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -524,7 +524,7 @@ static int do_plain_rerere(struct string_list *rr, int fd) continue; hex = xstrdup(sha1_to_hex(sha1)); string_list_insert(rr, path)->util = hex; - if (mkdir(git_path("rr-cache/%s", hex), 0755)) + if (mkdir_in_gitdir(git_path("rr-cache/%s", hex))) continue; handle_file(path, NULL, rerere_path(hex, "preimage")); fprintf(stderr, "Recorded preimage for '%s'\n", path); |