* Can I specify a “chunk size” for git svn fetch?
@ 2011-05-04 19:06 Zak Whaley
2011-05-09 17:29 ` Thomas Ferris Nicolaisen
0 siblings, 1 reply; 2+ messages in thread
From: Zak Whaley @ 2011-05-04 19:06 UTC (permalink / raw)
To: git
I asked this over on StackOverflow
(http://stackoverflow.com/q/5886993/665372) and someone suggested
asking this mailing list.
I'm cloning an SVN repo with git and everything seems to be working
fine. The very last revision I need to download contains a ~220MB zip
file.
I know this isn't an issue for git, however the school's server I'm
downloading it from hangs up half way through the file which
invalidates the entire index requiring that it re-download the
revision again.
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
Regards,
Zak Whaley
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can I specify a “chunk size” for git svn fetch?
2011-05-04 19:06 Can I specify a “chunk size” for git svn fetch? Zak Whaley
@ 2011-05-09 17:29 ` Thomas Ferris Nicolaisen
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Ferris Nicolaisen @ 2011-05-09 17:29 UTC (permalink / raw)
To: Zak Whaley; +Cc: git
> 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).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-09 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 19:06 Can I specify a “chunk size” for git svn fetch? Zak Whaley
2011-05-09 17:29 ` Thomas Ferris Nicolaisen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).