git-clone ignores umask for working tree
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 6, 2012, 19:27 UTC
- Message-ID
- <CALxABCZn5W-cEQ9PS+4XoqhH7L+5P3KN==_RrcruK+oKdijmWw@mail.gmail.com>
Hi list,
when git-clone was built in, its treatment of umask has changed: the shell version respected umask for newly created directories by using plain mkdir(1), and the builtin version just uses mkdir(work_tree, 0755).
Is it intentional?
This Stackoverflow question is what got me interested:
http://stackoverflow.com/questions/10637416/git-clone-respects-umask-except-for-top-level-project-directory
and might provide a credible use case.
Regards, Alex