Skip to content

Commit

Permalink
import-tars: be nice to wrong directory modes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Shawn O. Pearce committed Apr 29, 2007
1 parent 9bc20aa commit 87859f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/fast-import/import-tars.perl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
Z8 Z1 Z100 Z6
Z2 Z32 Z32 Z8 Z8 Z*', $_;
last unless $name;
next if $name =~ '/$';
$mode = oct $mode;
$size = oct $size;
$mtime = oct $mtime;
Expand Down

0 comments on commit 87859f3

Please sign in to comment.