From: Ævar Arnfjörð Bjarmason Date: Thu, 15 Nov 2018 18:54:32 GMT Subject: Re: insteadOf and git-request-pull output Message-ID: <87pnv6189j.fsf@evledraar.gmail.com> In-Reply-To: <20181115182826.GB25806@pure.paranoia.local> On Thu, Nov 15 2018, Konstantin Ryabitsev wrote: > Hi, all: > > Looks like setting url.insteadOf rules alters the output of > git-request-pull. I'm not sure that's the intended use of insteadOf, > which is supposed to replace URLs for local use, not to expose them > publicly (but I may be wrong). E.g.: > > $ git request-pull HEAD^ git://foo.example.com/example | grep example > git://foo.example.com/example > > $ git config url.ssh://bar.insteadOf git://foo > > $ git request-pull HEAD^ git://foo.example.com/example | grep example > ssh://bar.example.com/example > > I think that if we use the "principle of least surprise," insteadOf > rules shouldn't be applied for git-request-pull URLs. I haven't used request-pull so I don't have much of an opinion on this, but do you think the same applies to 'git remote get-url '? I.e. should it also show the original unmunged URL, or the munged one as it does now?