From: Thomas Rast <trast@student.ethz.ch>
To: "Erik Faye-Lund" <kusmabite@googlemail.com>
Cc: git@vger.kernel.org
Subject: Re: git-svn: incomplete data after terminated "git svn clone"
Date: Tue, 10 Feb 2009 14:42:29 +0100 [thread overview]
Message-ID: <200902101442.32772.trast@student.ethz.ch> (raw)
In-Reply-To: <40aa078e0902100350m2d885516o853b1ec56eb43ce1@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]
Erik Faye-Lund wrote:
> I recently tried to clone an existing (very big) SVN repo by using
> "git svn clone <repo> -s", and by mistake I pressed Ctrl-C after the
> clone operation had been running for ~16 hours. When trying to
> re-issue the clone, I got the error message "Incomplete data: Delta
> source ended unexpectedly at /home/erifay01/libexec/git-core/git-svn
> line 4249" after git-svn fetching another 8 or so revisions. Now, I
> realize I shouldn't have done this, but I'd still prefer avoiding to
> have to re-do it all.
[...]
> Now, I'm wondering if there's any way of going back to the state
> before I pressed Ctrl-C, so I can rebuild from there. I know what
> revision I terminated at, and I have the corresponding SHA.
Some ideas:
First you can try to reset the git-svn head to the SHA of the commit
before (in case the one it stopped at ended up being corrupted). For
example, if $stopped is the commit you interrupted it at,
git update-ref refs/remotes/git-svn $stopped^
Adjust the ref name if you used a trunk/branches layout. Then remove
the .git/svn/ cache and try again.
Failing that, you could test if this also happens when only looking at
a few surrounding revisions, for example if the failure was around
revision 100:
mkdir ../new-test
cd ../new-test
git svn init <args you gave to the other git svn init/clone>
git svn fetch -r 95:105
--
Thomas Rast
trast@{inf,student}.ethz.ch
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-02-10 13:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 11:50 git-svn: incomplete data after terminated "git svn clone" Erik Faye-Lund
2009-02-10 13:42 ` Thomas Rast [this message]
2009-02-10 15:01 ` Erik Faye-Lund
2009-02-10 15:10 ` Luciano Miguel Ferreira Rocha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200902101442.32772.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=kusmabite@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.