25 lines · 365 B · Text
RawDownload
#!/bin/rc . /sys/lib/shithub/common.rc cd $1shift rfork nenl='' gituser=$1repo=$2refname=$3filename=$repo^'-'^`{date -f 'YYYYMMDD-hhmm'}^'.tgz' repons $gituser $repoif(! ref=`{resolveref $refname}){	echo '<b>invalid ref '$refname'</b>'	exit}bind $gitfs/$ref/tree /mnt/$repocd /mnthttp_response 'application/x-gzip' $filenametar c $repo | gzip -n