Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Includes empty pack files

Author Dave Jarvis <email>
Date 2026-02-16 02:26:29 GMT-0800
Commit 77c2becd4d5ca5ef9767316012b0e2d394e70350
Parent 8297de2
Delta 4 lines added, 7 lines removed, 3-line decrease
git/Git.php
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 );
}