Subject: Re: nightly tarballs of git

From: Jakub Narebski <[email-masked]>
Date: Thu, 14 Sep 2006 21:48:40 +0200

Dave Jones wrote:

> I don't recall ever having done anything at all in the dir that
> is being snapshotted. So the only thing that should be happening
> is the side-effects of the script.  Here it is in its entirity..
> 
> DATE=`date +%Y-%m-%d`
> 
> PROJ="git"
> cd ~/git-trees
> if [ -d $PROJ ]; then
>   cd $PROJ

Just in case I would add "git checkout master" here.

>   git pull -n
> else
>   git clone -q git://git.kernel.org/pub/scm/git/git.git
>   cd $PROJ
> fi
> snap=git-snapshot-$(date +"%Y%m%d")
> git-tar-tree HEAD $snap | gzip -9 > $PROJ-$DATE.tar.gz

And what is the HEAD? Perhaps you should say 'origin' here instead?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git