Re: Git push from bare repo
From: Goran Mekić <hidden>
Date: 2016-06-15 22:48:52
On Fri, 28 May 2010 11:15:17 +0200, Andreas Ericsson [off-list ref] wrote:
On 05/28/2010 08:57 AM, Goran Mekić wrote:quoted
I have to push from first server to second (yeah, the names are great :o) when ever someone pushes to first server. It should be done using post-receive hook, for example. The problem is that I can not specify
ssh
quoted
key, and even if I could, anything but 600 perm for the key is
rejected.
quoted
What would be the best way to acomplish this? Thanx!Why can't you specify ssh key, and why can't you set the key to have
perms
0600 and let it reside in a directory with perms 0700? The post-receive hook is just a shell-script, basically.
There's more then one developer and 600 is set to just one user. Post-receive hook is executed as developer doing push. The accounts are in LDAP, but I can't set all their UID number to same number because it's used for PAM. I was thinking about ACL. Is that even a solution? The dumb one would be cron, but I wish I avoid pushing when there's no change. -- FreeB(eer)S(ex)D(rugs) are the real daemons