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

Re: Can I specify a “chunk size” for git svn fetch?

From
Thomas Ferris Nicolaisen <tfnico@gmail.com>
Date
May 9, 2011, 17:29 UTC
Message-ID
<BANLkTinpK1DtgSBq=znBb=ung5FcttLn_g@mail.gmail.com>
In-Reply-To
<BANLkTinXvjQth3wBmZUu8A0QszCXm8dc6g@mail.gmail.com>
Show 8 quoted lines
> Is there a way to tell git-svn fetch to get an index in multiple
> chunks of a particular chunk-size or to retain the partial index if
> the server hangs up?
>
> Spec info:
> Win7 with Cygwin 1.7.9-1
> git & git-svn 1.7.4-1
>

If you are willing to leave out the big zip file from your repository, you could try the following:

Make two clones, one before the over-sized commit, and one for afterwards. Say the big commit was committed in revision 36, it would be something like:

git svn clone -r1:35 url first-clone git svn clone -r36:HEAD url second-clone

Now fetch the second repo into the first repo, and tie the history together using _grafts_. I've made a screencast with an example of grafting like this here:

http://blog.tfnico.com/2010/10/gitsvn-6-grafting-together-svn-history.html
(I'll cross-post this answer to StackOverflow as well).
Previous: Zak Whaley
Message 2 of 2 in “Can I specify a “chunk size” for git svn fetch?”
  1. Zak WhaleyMay 4, 2011
  2. Thomas Ferris NicolaisenMay 9, 2011

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.