git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git push from bare repo

From
Andreas Ericsson <ae@op5.se>
Date
May 28, 2010, 09:15 UTC
Message-ID
<4BFF89A5.7020802@op5.se>
In-Reply-To
<3197051701046e645c8ff2ae7dca872a@ns-linux.org>
On 05/28/2010 08:57 AM, Goran Mekić wrote:
Show 7 quoted lines
> 
>      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
> key, and even if I could, anything but 600 perm for the key is rejected.
> 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.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Goran MekićNext: Goran Mekić
Message 2 of 5 in “Git push from bare repo”
  1. Goran MekićMay 28, 2010
  2. Andreas EricssonMay 28, 2010
  3. Goran MekićMay 28, 2010
  4. BJ HargraveMay 28, 2010
  5. GelonidaMay 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.