* push instead of
@ 2010-04-30 9:56 Mahesh Vaidya
2010-04-30 17:24 ` Tomas Carnecky
2010-04-30 23:59 ` Jay Soffian
0 siblings, 2 replies; 5+ messages in thread
From: Mahesh Vaidya @ 2010-04-30 9:56 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push instead of
2010-04-30 9:56 push instead of Mahesh Vaidya
@ 2010-04-30 17:24 ` Tomas Carnecky
2010-04-30 18:24 ` Mahesh Vaidya
2010-04-30 23:59 ` Jay Soffian
1 sibling, 1 reply; 5+ messages in thread
From: Tomas Carnecky @ 2010-04-30 17:24 UTC (permalink / raw)
To: Mahesh Vaidya; +Cc: git
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push instead of
2010-04-30 17:24 ` Tomas Carnecky
@ 2010-04-30 18:24 ` Mahesh Vaidya
2010-04-30 22:11 ` Tomas Carnecky
0 siblings, 1 reply; 5+ messages in thread
From: Mahesh Vaidya @ 2010-04-30 18:24 UTC (permalink / raw)
To: git
No Luck, it still hits readonly url ;
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
>
> tom
>
>
--
Thank you and best regards.
Mahesh Vaidya / 9740500144
http://www.twitter.com/forvaidya
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push instead of
2010-04-30 18:24 ` Mahesh Vaidya
@ 2010-04-30 22:11 ` Tomas Carnecky
0 siblings, 0 replies; 5+ messages in thread
From: Tomas Carnecky @ 2010-04-30 22:11 UTC (permalink / raw)
To: Mahesh Vaidya; +Cc: git
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
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push instead of
2010-04-30 9:56 push instead of Mahesh Vaidya
2010-04-30 17:24 ` Tomas Carnecky
@ 2010-04-30 23:59 ` Jay Soffian
1 sibling, 0 replies; 5+ messages in thread
From: Jay Soffian @ 2010-04-30 23:59 UTC (permalink / raw)
To: Mahesh Vaidya; +Cc: git
On Fri, Apr 30, 2010 at 5:56 AM, Mahesh Vaidya <forvaidya@gmail.com> 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
> [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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-30 23:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 9:56 push instead of Mahesh Vaidya
2010-04-30 17:24 ` Tomas Carnecky
2010-04-30 18:24 ` Mahesh Vaidya
2010-04-30 22:11 ` Tomas Carnecky
2010-04-30 23:59 ` Jay Soffian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).