ref: 7c3ef1d4f6ff9b6dfcc96d4b0bce2c93cdc1d069
dir: /tar/
#!/bin/rc . /sys/lib/shithub/common.rc cd $1 shift rfork ne nl=' ' gituser=$1 repo=$2 refname=$3 filename=$repo^'-'^`{date -f 'YYYYMMDD-hhmm'}^'.tgz' repons $gituser $repo if(! ref=`{resolveref $refname}){ echo '<b>invalid ref '$refname'</b>' exit } bind $gitfs/$ref/tree /mnt/$repo cd /mnt http_response 'application/x-gzip' $filename tar c $repo | gzip -n