Skip to content

Commit

Permalink
git-svn: migrations default to [svn-remote "git-svn"]
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong committed Feb 23, 2007
1 parent 88cf410 commit 471bc00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 471bc00

Please sign in to comment.