1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 05:47:53 +01:00

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:
Uwe Kleine-König 2007-04-24 13:51:04 +02:00 committed by Shawn O. Pearce
parent a5c1780a03
commit 46f6178a3f

View file

@ -64,7 +64,12 @@
}
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;