summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88cf410)
raw | patch | inline | side by side (parent: 88cf410)
author | Eric Wong <normalperson@yhbt.net> | |
Thu, 1 Feb 2007 12:06:27 +0000 (04:06 -0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Fri, 23 Feb 2007 08:57:11 +0000 (00:57 -0800) |
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>
refname came up first in our directory traversal. Of course
--remote= overrides this.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index ad2ef53f8d22e60e4dc8dfc6b20955439544660e..de14ed435731b53d0a349f3f3ecf3446235ba164 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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;