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

Re: [PATCH] v2: proxy-command support for git://

From
PCPaul Collins <paul@briny.ondioline.org>
Date
Nov 4, 2005, 22:04 UTC
Message-ID
<87hdas9ijp.fsf@briny.internal.ondioline.org>
In-Reply-To
<7v3bmct7i3.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 17 quoted lines
> Paul Collins <paul@briny.ondioline.org> writes:
>
>> But perhaps I do not really understand your objection.
>
> No, I think you are getting it right.
>
> I just wanted to avoid using the proxy script for some hosts,
> depending on where you are going.  Obviously you can teach the
> proxy script to do passthru for some hosts like you did in your
> message.  The only difference is where the configuration is
> specified.  I wanted it to be in the git configuration file
> (i.e. using different proxy script or no script, depending on
> the host).  Your example has that configuration wired in the
> single script that is always called regardless of the
> destination, and the script itself switches how it proxies,
> depending on where it is going, perhaps using its own
> configuration file or hardcoding.
I had some ideas along those lines, but I didn't like any of them.
 * Extend the proxy-command "protocol" with a third argument, an
   action.  For example if 'query $host $port' returns successfully,
   then git should run it with arguments 'connect $host $port',
   otherwise use git_tcp_connect().
 * Add a Proxy-Command field to the files in .git/remotes, e.g.:
     URL: git://git.kernel.org/pub/scm/git/git.git/
     Pull: master:origin
     Proxy-command: my-git-proxy-command
 * If the git config syntax is extended to allow dots in section or
   key names:
     [proxy]
     git.kernel.org = "ssh-to-bastion-proxy-command"
     git.blargco.com = "blargco-proxy-command"
   or perhaps
     [git.kernel.org]
     proxycommand = "ssh-to-bastion-proxy-command"
     [git.blargco.com]
     proxycommand = "blargco-proxy-command"
-- 
Dag vijandelijk luchtschip de huismeester is dood
Previous: Junio C HamanoNext: Linus Torvalds
Message 11 of 13 in “RFC: proxy-command support for git://”
  1. RFC: proxy-command support for git://Paul Collins, Nov 3, 2005
  2. Junio C HamanoNov 3, 2005
  3. Linus TorvaldsNov 3, 2005
  4. Carl BaldwinNov 3, 2005
  5. Junio C HamanoNov 3, 2005
  6. Paul CollinsNov 4, 2005
  7. Junio C HamanoNov 4, 2005
  8. Junio C HamanoNov 4, 2005
  9. Paul CollinsNov 4, 2005
  10. Junio C HamanoNov 4, 2005
  11. Paul CollinsNov 4, 2005
  12. Linus TorvaldsNov 4, 2005
  13. git-proxy updates.Junio C Hamano, Nov 19, 2005

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.