git - directory permissions when cloning a repo

view story

http://serverfault.com – How can I control which permissions will be set for the base directory when I clone with git? Shouldn't git use at least the umask of the user who runs it? Please have a look at my current workflow: $ umask prints 0002 so that $ mkdir test creates a directory with group write permissions drwxrwsr-x user www-data test/. Lets use git: $ git init --shared=group base_repo which creates a directory with the right permissions: drwxrwsr-x user www-data base_repo/ Adding files, doing git stuff and commit... Now I clone $ git clone ./base_repo clone_repo but this time git creates a directory where (HowTos)