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
Post a Comment