Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fix importing of subversion tars
[gitweb.git]
/
contrib
/
fast-import
/
import-tars.perl
diff --git
a/contrib/fast-import/import-tars.perl
b/contrib/fast-import/import-tars.perl
index 5585a8b2c575f92e6154e03641b467e5e54509f4..184214689dfd3f1204546b060adbffd3f6d79bbe 100755
(executable)
--- a/
contrib/fast-import/import-tars.perl
+++ b/
contrib/fast-import/import-tars.perl
@@
-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;