summaryrefslogtreecommitdiff
path: root/contrib/fast-import
diff options
context:
space:
mode:
authorLibravatar Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-04-24 13:51:04 +0200
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-04-24 12:14:40 -0400
commit46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8 (patch)
treef79560278286e0a4cecffe805c582c921cc6683b /contrib/fast-import
parentDon't repack existing objects in fast-import (diff)
downloadtgif-46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8.tar.xz
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>
Diffstat (limited to 'contrib/fast-import')
-rwxr-xr-xcontrib/fast-import/import-tars.perl7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/fast-import/import-tars.perl b/contrib/fast-import/import-tars.perl
index 5585a8b2c5..184214689d 100755
--- a/contrib/fast-import/import-tars.perl
+++ b/contrib/fast-import/import-tars.perl
@@ -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;