[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

[git-users] git clone --recursive times out and fails to clone submodule

2013-10-02 Thread mbkv
Hi, I am unable to clone a specific repository with submodules. $ git clone --recursive https://www.github.com/lagadic/visp_auto_tracker.git Cloning into 'visp_auto_tracker'... remote: Counting objects: 275, done. remote: Compressing objects: 100% (222/222), done. remote: Total 275 (delta

[git-users] keeping two bare repos in sync?

2013-10-02 Thread dkoleary
Hey; I just had the bare vs non-bare repo concept smack me in the face. Painful way to learn things, but I won't forget it any time soon. Since my remote repos are no longer work trees, how can I keep two bare repos in sync? This is primarily for DR purposes. Here's more detail in case

[git-users] Re: keeping two bare repos in sync?

2013-10-02 Thread dkoleary
Apologies for replying to my own post, but I did just find the git --bare fetch. While that seems to have worked, # git --bare fetch ${prod}:/opt/app/git/filemover From ${prod}:/opt/app/git/filemover * branchHEAD - FETCH_HEAD how do I go about getting those changes into the

[git-users] Git-Enforced Policy

2013-10-02 Thread jobj92
Hello, I am trying to prevent users from attempting certain operations on my repository which is located on a Linux server by employing Server-Side hooks. The Git manual recommends creating a shell wrapper script to set a USER environment variable, which will then be used to restrict certain