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

Re: push instead of

From
Jay Soffian <jaysoffian@gmail.com>
Date
Apr 30, 2010, 23:59 UTC
Message-ID
<m2g76718491004301659n7665d221se131a7a194530e32@mail.gmail.com>
In-Reply-To
<z2gb42431c81004300256ke7248f40y7bce060d52cfa943@mail.gmail.com>
On Fri, Apr 30, 2010 at 5:56 AM, Mahesh Vaidya <forvaidya@gmail.com> wrote:
Show 11 quoted lines
> I am facing problem at pushInsteadIOf. I would like pull from
> "pullhost" and push to "pushhost" as my pullhost as pre-receive
> trigger which not accepting pushes.
>
> However when I do git push it still hits pull host. I have following config.
>
> [remote "origin"]
>        fetch = +refs/heads/*:refs/remotes/origin/*
>        url = gitosis@pull_host:repos.git
> [url "gitosis@localhost"]
>        pushInsteadOf = gitosis@PUSH_host:repos.git

I think you have your arguments backwards if I understand your mail correctly. Try:

[url "gitosis@PUSH_host:repos.git"]
       pushInsteadOf = gitosis@pull_host:repos.git

Now when pushing, _instead_ of pushing to "gitosis@pull_host:repos.git" (which is the origin url), you will push to "gitosis@PUSH_host:repos.git".

I'm not sure what gitosis@localhost was supposed to represent in your email.
j.
Previous: Tomas Carnecky
Message 5 of 5 in “push instead of”
  1. Mahesh VaidyaApr 30, 2010
  2. Tomas CarneckyApr 30, 2010
  3. Mahesh VaidyaApr 30, 2010
  4. Tomas CarneckyApr 30, 2010
  5. Jay SoffianApr 30, 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.