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

git clone against firewall

From
SPSebastian Pipping <webmaster@hartwork.org>
Date
Jan 14, 2010, 23:45 UTC
Message-ID
<4B4FACB1.2080902@hartwork.org>
hello!
with a firewall blocking outgoing connections to port 9418 a
  git clone git://...

of git 1.6.6 seems to never return, i.e. loop forever. in my rather automated environment (gentoo's tool layman calling git) this behavior is rather troublesome - i need some kind of abort-and-error instead: what i'm trying to do is loop over a number of clone URL alternatives of the same repository like ..

  git://git.overlays.gentoo.org/dev/dberkholz.git
  http://git.overlays.gentoo.org/gitroot/dev/dberkholz.git
  git+ssh://git@git.overlays.gentoo.org/dev/dberkholz.git
.. and stop at the first clone that returns without error.

are there means to make git fail in such a case or to apply a timout? if not please consider adding a related commandline option to git-clone.

thank you.
sebastian
Next: Junio C Hamano
Message 1 of 8 in “git clone against firewall”
  1. Sebastian PippingJan 14, 2010
  2. Junio C HamanoJan 15, 2010
  3. Sebastian PippingJan 15, 2010
  4. Sebastian PippingJan 15, 2010
  5. Andreas SchwabJan 15, 2010
  6. Sebastian PippingJan 15, 2010
  7. Andreas KreyJan 15, 2010
  8. Sebastian PippingJan 18, 2010

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.