threads / discuss / 23635

push instead of

Subject: push instead of

## tl;dr

5 messages between Apr 30, 2010 and Apr 30, 2010.

replies: 4people: 3as markdown or json

Mahesh Vaidya· Apr 30, 2010, 09:56 UTC · lore

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
-- 
Thank you and best regards.
Mahesh Vaidya  / 9740500144
http://www.twitter.com/forvaidya
Tomas Carnecky· Apr 30, 2010, 17:24 UTC · re: Mahesh Vaidya · lore

Re: push instead of

On 4/30/10 11:56 AM, Mahesh Vaidya wrote:
Show 9 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
	pushurl = gitosis@PUSH_host:repos.git
tom
Mahesh Vaidya· Apr 30, 2010, 18:24 UTC · re: Tomas Carnecky · lore

Re: push instead of

No Luck, it still hits  readonly url ;
On Fri, Apr 30, 2010 at 10:54 PM, Tomas Carnecky <tom@dbservice.com> wrote:
Show 18 quoted lines
> On 4/30/10 11:56 AM, Mahesh Vaidya wrote:
>>
>> 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
>
>        pushurl = gitosis@PUSH_host:repos.git
>
> tom
>
>
-- 
Thank you and best regards.
Mahesh Vaidya  / 9740500144
http://www.twitter.com/forvaidya
Tomas Carnecky· Apr 30, 2010, 22:11 UTC · re: Mahesh Vaidya · lore

Re: push instead of

On 4/30/10 8:24 PM, Mahesh Vaidya wrote:
> No Luck, it still hits  readonly url ;
Maybe your git version is too old. pushurl was introduced in v1.6.4
Show 16 quoted lines
>
> On Fri, Apr 30, 2010 at 10:54 PM, Tomas Carnecky<tom@dbservice.com>  wrote:
>> On 4/30/10 11:56 AM, Mahesh Vaidya wrote:
>>>
>>> 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
>>
>>         pushurl = gitosis@PUSH_host:repos.git
Jay Soffian· Apr 30, 2010, 23:59 UTC · re: Mahesh Vaidya · lore

Re: push instead of

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.

← back to recent threads