Re: [git-users] Hook for controlling owner, group, and permissions?

2014-12-15 Thread Konstantin Khomoutov
On Tue, 9 Dec 2014 10:32:28 -0800 (PST) leam hall leamh...@gmail.com wrote: Is there a HOWTO or tutorial for how to control owner, group, and permissions on files as they get checked in? The ideal is that the owner and group change to X and Y and the permissions are set to 770. I'd like to

Re: [git-users] Hook for controlling owner, group, and permissions?

2014-12-15 Thread Daniel Fanjul
This is a possible workaround: cat ./.git/hooks/post-checkout -EOF #!/bin/bash chmod files true EOF cat ./.git/hooks/post-rewrite -EOF #!/bin/bash cat /dev/null chmod files true EOF chmod u+x ./.git/hooks/post-{checkout,rewrite} -- Daniel Fanjul Alcutén

[git-users] Hook for controlling owner, group, and permissions?

2014-12-09 Thread leam hall
Hey all, I'm still learning. Is there a HOWTO or tutorial for how to control owner, group, and permissions on files as they get checked in? The ideal is that the owner and group change to X and Y and the permissions are set to 770. I'd like to figure out how to do and test that. Thoughts?