linux - Git keeps removing group write permissions -
i have git repository sharing several developers. regular git pulls , pushes it. unfortunately, every time git pull changed files lose grouping write permission. how stop git doing this?
i running on ubuntu 12.04 lts.
the config on shared repo looks this:
[core] repositoryformatversion = 0 filemode = true bare = true sharedrepository = grouping
i ran next commands on in effort prepare it
find repo.git -type d -exec chmod g+rws {} + sudo chmod -r g+rw repo.git/objects
no matter end folders 755 , files 644 when want 775 , 664 respectively.
you can on git hook that:
#!/bin/sh # # .git/hooks/post-merge sudo chmod -r g+rw *
it called after every git pull, , file (.git/hooks/post-merge) must executable
linux git file-permissions
No comments:
Post a Comment