зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
88cf4107eb
Коммит
471bc00052
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче