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

`git (submodule update|fetch|pull) --continue` similar to `curl -C -`?

From
Tim Visher <tim.visher@gmail.com>
Date
Apr 12, 2010, 15:00 UTC
Message-ID
<u2lc115fd3c1004120800y54d09b8bt3e7aeda9509703c8@mail.gmail.com>
Hey All,

I'm behind a very aggressive firewall/proxy at work and as far as I can tell it actually interrupts long connections on purpose. Most programs seem to be able to deal with it, although the connection speed is slower. Git, however, seems to not be able to deal with it every once and awhile.

For instance:
    $ g sm update
    Initialized empty Git repository in /home/tim/.emacs.d/site-lisp/ecb/.git/
    error: Unable to get pack file
http://github.com/emacsmirror/ecb.git/objects/pack/pack-364b879fac4ebed663f528dc3ddff99ddd6716e9.pack
    ***emphasis***
    transfer closed with 969832 bytes remaining to read
    ***emphasis***
    error: Unable to find 67861e756712c4e5917461e8b149089dceceec88
under     http://github.com/emacsmirror/ecb.git
    Cannot obtain needed object 67861e756712c4e5917461e8b149089dceceec88
    while processing commit 8043b271a679c7faae65c0d75a73e63bb25d1620.
    error: Fetch failed.
    Clone of 'http://github.com/emacsmirror/ecb.git' into submodule
path     'site-lisp/ecb' failed

It would seem like an interesting idea to be able to download a repo progressively with interruptions along the lines of `curl -C -` so that if an interruption happened you can still report the error but then offer a `--continue` or `--abort` option. --continue would obviously attempt to pick up where it left off and --abort would delete the cache to save the disk space.

Thoughts?

This could also be a problem with GitHub. I don't know enough about submodules to make an educated guess there. I only guess that it's the proxy's fault because I only experience this at work.

-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Message 1 of 1 in “`git (submodule update|fetch|pull) --continue` similar to `curl -C -`?”
  1. Tim VisherApr 12, 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.