mirror of
https://github.com/git/git
synced 2024-09-13 21:34:42 +00:00
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>
This commit is contained in:
parent
9bc20aa731
commit
87859f3443
|
@ -52,6 +52,7 @@
|
||||||
Z8 Z1 Z100 Z6
|
Z8 Z1 Z100 Z6
|
||||||
Z2 Z32 Z32 Z8 Z8 Z*', $_;
|
Z2 Z32 Z32 Z8 Z8 Z*', $_;
|
||||||
last unless $name;
|
last unless $name;
|
||||||
|
next if $name =~ '/$';
|
||||||
$mode = oct $mode;
|
$mode = oct $mode;
|
||||||
$size = oct $size;
|
$size = oct $size;
|
||||||
$mtime = oct $mtime;
|
$mtime = oct $mtime;
|
||||||
|
|
Loading…
Reference in a new issue