Browse Source

Merge branch 'js/import-tars-do-not-make-phony-files-from-pax-headers'

The import-tars importer (in contrib/fast-import/) used to create
phony files at the top-level of the repository when the archive
contains global PAX headers, which made its own logic to detect and
omit the common leading directory ineffective, which has been
corrected.

* js/import-tars-do-not-make-phony-files-from-pax-headers:
  import-tars: ignore the global PAX header
maint
Junio C Hamano 5 years ago
parent
commit
8633f213e6
  1. 2
      contrib/fast-import/import-tars.perl

2
contrib/fast-import/import-tars.perl

@ -139,6 +139,8 @@ foreach my $tar_file (@ARGV)
print FI "\n"; print FI "\n";
} }


next if ($typeflag eq 'g'); # ignore global header

my $path; my $path;
if ($prefix) { if ($prefix) {
$path = "$prefix/$name"; $path = "$prefix/$name";

Loading…
Cancel
Save