aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-04-24 13:51:04 +0200
committerShawn O. Pearce <spearce@spearce.org>2007-04-24 12:14:40 -0400
commit46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8 (patch)
treef79560278286e0a4cecffe805c582c921cc6683b /contrib
parenta5c1780a0355a71b9fb70f1f1977ce726ee5b8d8 (diff)
downloadgit-46f6178a3f4e7a5bf8b47da0f3cc5c998d907ce8.tar.gz
git-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')
-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 5585a8b2c..184214689 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;