[git-users] Git changes the permissions on a file after push

2013-10-02 Thread Maximus Fedorov
Set up gitosis, and it turns out that all users are working on behalf of one member gituser. And every time the updated files in the repository that triggered the post-retseive: #! / bin / bash read oldrev newrev refname echo REFNAME: $ refname echo if [$ refname == refs / heads /

Re: [git-users] Git changes the permissions on a file after push

2013-10-02 Thread Konstantin Khomoutov
On Wed, 2 Oct 2013 02:41:40 -0700 (PDT) Maximus Fedorov stm32...@gmail.com wrote: Set up gitosis, and it turns out that all users are working on behalf of one member gituser. And every time the updated files in the repository that triggered the post-retseive: #! / bin / bash read oldrev

Re: [git-users] Git changes the permissions on a file after push

2013-10-02 Thread Konstantin Khomoutov
On Wed, 2 Oct 2013 14:30:14 +0400 Konstantin Khomoutov flatw...@users.sourceforge.net wrote: [...] cd /var/www/siteA export GIT_INDEX_FILE=`mktemp siteA.` trap rm -f '$GIT_INDEX_FILE' INT TERM QUIT EXIT git read-tree HEAD git checkout-index -a -f [...] git read-tree HEAD here is