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>
Uwe Kleine-König committed
Apr 24, 2007 at 13:51 UTC
46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8
1 file changed
+6
-1
contrib/fast-import/import-tars.perl
+6
-1
@@ -64,7 +64,12 @@ foreach my $tar_file (@ARGV)
64
}
65
print FI "\n";
66
67
- my $path = "$prefix$name";
67
+ my $path;
68
+ if ($prefix) {
69
+ $path = "$prefix/$name";
70
+ } else {
71
+ $path = "$name";
72
+ }
73
$files{$path} = [$next_mark++, $mode];
74
75
$commit_time = $mtime if $mtime > $commit_time;