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

Feature suggestion: support arguments for GIT_PROXY_COMMAND & core.gitproxy

From
JKJoey Korkames <joey+floss@kidfixit.com>
Date
Dec 18, 2009, 23:39 UTC
Message-ID
<cone.1261179562.490491.4033.1000@toolshiner.phx1.kidfixit.com>

Could /connect.c be patched to support multiple arguments in ENV[GIT_PROXY_COMMAND] and git config core.gitproxy?

For instance, something like :
  GIT_PROXY_COMMAND="myproxyscript arg1 arg2"
or (way more useful):
 git config core.gitproxy \
  '"myproxyscript -mode git -proxy joey@gw.myhouse.com -proxy joey@bastion.foocorp.com" for foocorp.com$'

Its slightly annoying to maintain and distribute custom copies of myproxyscript that carry the repo-specific proxy arguments inline just because git won't pass those arguments itself (arguments that a repo's .git/config can easily store).

I think supporting tokens (ala ssh's ProxyCommand - %h=repohost, %p=repoport, %u=repouser) would be awesome, but that change would not be backward-compatible with existing .git/config files or GIT_PROXY_COMMAND utilizing-scripts. Its enough to assume that "$host $port" will always be appended to the gitproxy arg list.

Thanks for reading, (and thnaks for git!) -joey

Next: Joey Korkames
Message 1 of 5 in “Feature suggestion: support arguments for GIT_PROXY_COMMAND & core.gitproxy”
  1. Joey KorkamesDec 18, 2009
  2. Joey KorkamesDec 19, 2009
  3. Nanako ShiraishiDec 30, 2009
  4. Junio C HamanoDec 30, 2009
  5. Jeff KingDec 30, 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.