diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-09 16:27:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-09 16:27:49 -0700 |
commit | fd9563385f34c888408cf4f8683b1745ca2cf77a (patch) | |
tree | 33344ed8dc5b3463aa456f79ece5eb1f773a8e5e /rerere.c | |
parent | 45d4fdc2dc74c657a9c2e95bf04aed539fdcb0a4 (diff) | |
download | git-fd9563385f34c888408cf4f8683b1745ca2cf77a.tar.gz |
rerere: make rr-cache fanout directory honor umask
This is the last remaining call to mkdir(2) that restricts the permission
bits by passing 0755. Just use the same mkdir_in_gitdir() used to create
the leaf directories.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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); |