Skip to content

Commit

Permalink
fix importing of subversion tars
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Shawn O. Pearce committed Apr 24, 2007
1 parent a5c1780 commit 46f6178
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/fast-import/import-tars.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46f6178

Please sign in to comment.