| | foreach( $objects as $sha => $info ) { |
| | $content = $this->read( $sha ); |
| | - if( $content === '' ) continue; |
| | - |
| | - $type = $info['type']; |
| | - $size = strlen( $content ); |
| | - |
| | - $byte = ($type << 4) | ($size & 0x0f); |
| | + $type = $info['type']; |
| | + $size = strlen( $content ); |
| | + $byte = ($type << 4) | ($size & 0x0f); |
| | $size >>= 4; |
| | |
| | while( $size > 0 ) { |
| | $packObjects .= chr( $byte | 0x80 ); |
| | $byte = $size & 0x7f; |
| | $size >>= 7; |
| | } |
| | - $packObjects .= chr( $byte ); |
| | |
| | + $packObjects .= chr( $byte ); |
| | $packObjects .= gzcompress( $content ); |
| | } |