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

Re: [WIP/RFC] Allow push and fetch urls to be different

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jun 7, 2009, 09:00 UTC
Message-ID
<4A2B819F.8010907@drmicha.warpmail.net>
In-Reply-To
<7vtz2sbrqh.fsf@alter.siamese.dyndns.org>
Junio C Hamano venit, vidit, dixit 07.06.2009 06:19:
Show 28 quoted lines
> Michael J Gruber <git@drmicha.warpmail.net> writes:
> 
>> This introduces a config setting remote.$remotename.pushurl which is
>> used for pushes only. If absent remote.$remotename.url is used for
>> pushes and fetches as before.
>> This is useful, for example, in order to to do passwordless fetches
>> (remote update) over git: but pushes over ssh.
>>
>> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
>> ---
>> This is a working prototype, but I'd like to rfc about the approach before
>> coding further.
> 
> As I am guilty for suggesting this, obviously I do not have a problem with
> what the patch wants to achieve.
> 
> And the change looks simple, straightforward and correct.
> 
>> Things that would go in a full series:
>> * documentation (man pages, maybe manual)
>> * tests
> 
> Surely.
> 
>> * teach builtin-remote about pushurl
> 
> Hmm,...  my impression was that "git remote" does not have much support
> for the push side.  What kind of things are you going to teach?

First I was thinking about rm and mv, but that's being taken care of automatically by removing/renaming a config section. This leaves "remote show $remote" which should list the pushurls along with the urls. "remote -v" should probably list urls but not pushurls. I don't plan on adding pushurl support to "remote add", I think using git config is OK for this setting.

Michael
Previous: Junio C HamanoNext: Mike Gaffney
Message 7 of 8 in “Using different protocols for "pull" and "push".”
  1. Nikos ChantziarasJun 4, 2009
  2. Junio C HamanoJun 5, 2009
  3. [WIP/RFC] Allow push and fetch urls to be differentMichael J Gruber, Jun 6, 2009
  4. Tay Ray ChuanJun 6, 2009
  5. Linus TorvaldsJun 6, 2009
  6. Junio C HamanoJun 7, 2009
  7. Michael J GruberJun 7, 2009
  8. Mike GaffneyJun 5, 2009

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.