On Tue, 17 Sep 2013 08:54:07 -0700 (PDT)
Paul McGregory <mcgregory5...@gmail.com> wrote:

> I am trying to clone a old svn repository with the following line
> git svn clone --stdlayout --ignore-path="[^/]>(?:branches|tags)" -A 
> authors.txt svn://host/var/svn/myrepository
> It´s running well until a special Revision:
> Initializing parent: refs/remotes/tags/test@2056
> fatal: Not a valid object name
> ls-tree -z ./: command returned error: 128

Judging from what I see, the error comes from the Git::SVN::Fetcher
Perl module (one of those on top of which git-svn is implemented),
from one of two occurences of this statement

command('ls-tree', '-z', $self->{c}, "./$gpath")

with that "command" making a quite involved work to construct and exec()
a Git command.  My Perl is pretty rusty (and for good!) so I failed to
decypher what happens down the command() path my stab at it is that
$self->{c} happens to be an empty string (instead of the SHA-1 name of
a commit) in one of these calls under the circumstances you hit and the
actual command constructed by Perl just *drops* it, that's why you're
seeing "ls-tree -z ./" and not "ls-tree -z SOME_SHA1_HASH ./" in the
output; consequently the `git ls-tree` command tries to interpret "./"
as a name of a commit and fails at it, printing "fatal: Not a valid
object name".

The fact an empty string gets completely wiped off when constructing a
command to call makes me think you're on Windows, right?
Anyway, this has nothing to do with the problem at hand.

> Some idea?

Yes: you've probably hit a bug so post a message to the main Git
list [1] (and please read [2] before doing so).

Please make sure that:
1) You do not send a HTML-formatted message there.
2) Do not just post a link to this thread (it's a good thing to do but
   only at the end of an actual problem statement).
3) Provide much more info on your environment: OS and Git version (and
   its distribution, if applies).
4) Prepare to requests for making a dump of your Subversion repo
   available.  Or at least prepare to test proposed patches.

You can freely quote my quick stab at analyzing your problem.

1. http://vger.kernel.org/vger-lists.html#git
2. https://gist.github.com/tfnico/4441562

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to