Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git
pages/ClonePage.php
$service = $_GET['service'] ?? '';
+ if( empty( $service ) && isset( $_SERVER['QUERY_STRING'] ) ) {
+ parse_str( $_SERVER['QUERY_STRING'], $query );
+ $service = $query['service'] ?? '';
+ }
+
if( $service === 'git-upload-pack' ) {
header( 'Content-Type: application/x-git-upload-pack-advertisement' );
header( 'Content-Type: text/plain' );
+
if( $this->git->streamRaw( 'info/refs' ) ) {
exit;
}
}
+

Addresses redirect issue for cloning

Author Dave Jarvis <email>
Date 2026-02-16 01:04:00 GMT-0800
Commit 4a255d238487a1454cfb813c7ab2d2f7621958ab
Parent 7e6c266
Delta 7 lines added, 0 lines removed, 7-line increase