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:
parent
a5c1780a03
commit
46f6178a3f
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue