git file permissions over ssh/git-shell? -


i've setup private bare git repository foo.git developer on server, , gave them access on ssh via login shell git-shell.

as multi-user system bare repository setup them had chmod -r o-rwx foo.git run on it, other users on same system not access repository.

the trouble when developer pushes changes new files created in git repository (for example new objects or new branch tags) world readable.

how tell git, ssh, git-shell or whatever - when creates files in foo.git should chmod o-rwx ?

see git config --help , search core.sharedrepository.

if understood correctly configuration have put in config-file:

[core]     sharedrepository = 0666 

.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -