@matheusbsbs / matheus-bagliano / commits / 87859f3443
Fork 0

import-tars: be nice to wrong directory modes

Some tars seem to have modes 0755 for directories, not 01000755. Do not generate an empty object for them, but ignore them. Noticed by riddochc on IRC. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Johannes Schindelin committed Apr 29, 2007 at 01:59 UTC 87859f34434dda61cabb03447efd1dd2fe7ebac7
1 file changed +1
contrib/fast-import/import-tars.perl
+1
@@ -52,6 +52,7 @@ foreach my $tar_file (@ARGV)
52 Z8 Z1 Z100 Z6
53 Z2 Z32 Z32 Z8 Z8 Z*', $_;
54 last unless $name;
55 + next if $name =~ '/$';
56 $mode = oct $mode;
57 $size = oct $size;
58 $mtime = oct $mtime;