diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-05-10 23:31:27 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-10 23:31:27 +0200 |
commit | da774e82726209cbdb806566e93ff728c83ad7ab (patch) | |
tree | 277817d18b0d9a9235518fbf49b9e63929ac5a2d | |
parent | GIT v1.5.1.4 (diff) | |
parent | Properly handle '0' filenames in import-tars (diff) | |
download | git-da774e82726209cbdb806566e93ff728c83ad7ab.tar.xz git-da774e82726209cbdb806566e93ff728c83ad7ab.zip |
Merge branch 'gfi-maint' into maint
* gfi-maint:
Properly handle '0' filenames in import-tars
-rwxr-xr-x | contrib/fast-import/import-tars.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fast-import/import-tars.perl b/contrib/fast-import/import-tars.perl index e46492048c..f0b9a43abd 100755 --- a/contrib/fast-import/import-tars.perl +++ b/contrib/fast-import/import-tars.perl @@ -51,7 +51,7 @@ foreach my $tar_file (@ARGV) $prefix) = unpack 'Z100 Z8 Z8 Z8 Z12 Z12 Z8 Z1 Z100 Z6 Z2 Z32 Z32 Z8 Z8 Z*', $_; - last unless $name; + last unless length($name); if ($name eq '././@LongLink') { # GNU tar extension if (read(I, $_, 512) != 512) { |