{"thread":{"id":"23635","subject":"push instead of","startedAt":"2010-04-30T09:56:35Z","lastAt":"2010-04-30T23:59:10Z","messageCount":5,"participants":["Mahesh Vaidya","Tomas Carnecky","Jay Soffian"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140629","messageId":"z2gb42431c81004300256ke7248f40y7bce060d52cfa943@mail.gmail.com","threadId":"23635","inReplyTo":null,"subject":"push instead of","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-04-30T09:56:35Z","receivedAt":"2010-04-30T09:56:35Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"I am facing problem at pushInsteadIOf. I would like pull from\n\"pullhost\" and push to \"pushhost\" as my pullhost as pre-receive\ntrigger which not accepting pushes.\n\nHowever when I do git push it still hits pull host. I have following config.\n\n[remote \"origin\"]\n        fetch = +refs/heads/*:refs/remotes/origin/*\n        url = gitosis@pull_host:repos.git\n[url \"gitosis@localhost\"]\n        pushInsteadOf = gitosis@PUSH_host:repos.git\n\n\n-- \nThank you and best regards.\nMahesh Vaidya  / 9740500144\nhttp://www.twitter.com/forvaidya\n"},{"id":"140630","messageId":"4BDB1231.9090600@dbservice.com","threadId":"23635","inReplyTo":"z2gb42431c81004300256ke7248f40y7bce060d52cfa943@mail.gmail.com","subject":"Re: push instead of","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2010-04-30T17:24:01Z","receivedAt":"2010-04-30T17:24:01Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"On 4/30/10 11:56 AM, Mahesh Vaidya wrote:\n> I am facing problem at pushInsteadIOf. I would like pull from\n> \"pullhost\" and push to \"pushhost\" as my pullhost as pre-receive\n> trigger which not accepting pushes.\n>\n> However when I do git push it still hits pull host. I have following config.\n>\n> [remote \"origin\"]\n>          fetch = +refs/heads/*:refs/remotes/origin/*\n>          url = gitosis@pull_host:repos.git\n\tpushurl = gitosis@PUSH_host:repos.git\n\ntom\n"},{"id":"140636","messageId":"p2nb42431c81004301124l6744553csbe5abdeda0d48e67@mail.gmail.com","threadId":"23635","inReplyTo":"4BDB1231.9090600@dbservice.com","subject":"Re: push instead of","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-04-30T18:24:43Z","receivedAt":"2010-04-30T18:24:43Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"No Luck, it still hits  readonly url ;\n\n\nOn Fri, Apr 30, 2010 at 10:54 PM, Tomas Carnecky <tom@dbservice.com> wrote:\n> On 4/30/10 11:56 AM, Mahesh Vaidya wrote:\n>>\n>> I am facing problem at pushInsteadIOf. I would like pull from\n>> \"pullhost\" and push to \"pushhost\" as my pullhost as pre-receive\n>> trigger which not accepting pushes.\n>>\n>> However when I do git push it still hits pull host. I have following\n>> config.\n>>\n>> [remote \"origin\"]\n>>         fetch = +refs/heads/*:refs/remotes/origin/*\n>>         url = gitosis@pull_host:repos.git\n>\n>        pushurl = gitosis@PUSH_host:repos.git\n>\n> tom\n>\n>\n\n\n\n-- \nThank you and best regards.\nMahesh Vaidya  / 9740500144\nhttp://www.twitter.com/forvaidya\n"},{"id":"140662","messageId":"4BDB55A4.7000801@dbservice.com","threadId":"23635","inReplyTo":"p2nb42431c81004301124l6744553csbe5abdeda0d48e67@mail.gmail.com","subject":"Re: push instead of","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2010-04-30T22:11:48Z","receivedAt":"2010-04-30T22:11:48Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"On 4/30/10 8:24 PM, Mahesh Vaidya wrote:\n> No Luck, it still hits  readonly url ;\n\nMaybe your git version is too old. pushurl was introduced in v1.6.4\n\n>\n> On Fri, Apr 30, 2010 at 10:54 PM, Tomas Carnecky<tom@dbservice.com>  wrote:\n>> On 4/30/10 11:56 AM, Mahesh Vaidya wrote:\n>>>\n>>> I am facing problem at pushInsteadIOf. I would like pull from\n>>> \"pullhost\" and push to \"pushhost\" as my pullhost as pre-receive\n>>> trigger which not accepting pushes.\n>>>\n>>> However when I do git push it still hits pull host. I have following\n>>> config.\n>>>\n>>> [remote \"origin\"]\n>>>          fetch = +refs/heads/*:refs/remotes/origin/*\n>>>          url = gitosis@pull_host:repos.git\n>>\n>>         pushurl = gitosis@PUSH_host:repos.git\n"},{"id":"140663","messageId":"m2g76718491004301659n7665d221se131a7a194530e32@mail.gmail.com","threadId":"23635","inReplyTo":"z2gb42431c81004300256ke7248f40y7bce060d52cfa943@mail.gmail.com","subject":"Re: push instead of","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2010-04-30T23:59:10Z","receivedAt":"2010-04-30T23:59:10Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Fri, Apr 30, 2010 at 5:56 AM, Mahesh Vaidya <forvaidya@gmail.com> wrote:\n> I am facing problem at pushInsteadIOf. I would like pull from\n> \"pullhost\" and push to \"pushhost\" as my pullhost as pre-receive\n> trigger which not accepting pushes.\n>\n> However when I do git push it still hits pull host. I have following config.\n>\n> [remote \"origin\"]\n>        fetch = +refs/heads/*:refs/remotes/origin/*\n>        url = gitosis@pull_host:repos.git\n> [url \"gitosis@localhost\"]\n>        pushInsteadOf = gitosis@PUSH_host:repos.git\n\nI think you have your arguments backwards if I understand your mail\ncorrectly. Try:\n\n[url \"gitosis@PUSH_host:repos.git\"]\n       pushInsteadOf = gitosis@pull_host:repos.git\n\nNow when pushing, _instead_ of pushing to\n\"gitosis@pull_host:repos.git\" (which is the origin url), you will push\nto \"gitosis@PUSH_host:repos.git\".\n\nI'm not sure what gitosis@localhost was supposed to represent in your email.\n\nj.\n"}]}