зеркало из https://github.com/microsoft/git.git
fix importing of subversion tars
add a / between the prefix and name fields of the tar archive if prefix is non-empty. Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Родитель
a5c1780a03
Коммит
46f6178a3f
|
@ -64,7 +64,12 @@ foreach my $tar_file (@ARGV)
|
|||
}
|
||||
print FI "\n";
|
||||
|
||||
my $path = "$prefix$name";
|
||||
my $path;
|
||||
if ($prefix) {
|
||||
$path = "$prefix/$name";
|
||||
} else {
|
||||
$path = "$name";
|
||||
}
|
||||
$files{$path} = [$next_mark++, $mode];
|
||||
|
||||
$commit_time = $mtime if $mtime > $commit_time;
|
||||
|
|
Загрузка…
Ссылка в новой задаче