diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-02-01 04:06:27 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-02-23 00:57:11 -0800 |
commit | 471bc000528cf49928dae8872609b7fefc0c59ee (patch) | |
tree | cc9f3113dd4c91e8ab2a8f938a33c6f6b98ed756 /git-svn.perl | |
parent | 88cf4107eb70cdcdc226f2385a3ee54fb428c41d (diff) | |
download | git-471bc000528cf49928dae8872609b7fefc0c59ee.tar.gz |
git-svn: migrations default to [svn-remote "git-svn"]
It looks better (like [remote "origin"]) instead of whatever
refname came up first in our directory traversal. Of course
--remote= overrides this.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index ad2ef53f8d..de14ed4357 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2945,7 +2945,10 @@ sub migrate_from_v2 { my $migrated = 0; foreach my $ref_id (sort keys %l_map) { - Git::SVN->init($l_map{$ref_id}, '', $ref_id, $ref_id); + eval { Git::SVN->init($l_map{$ref_id}, '', undef, $ref_id) }; + if ($@) { + Git::SVN->init($l_map{$ref_id}, '', $ref_id, $ref_id); + } $migrated++; } $migrated; |