Re: nightly tarballs of git
Show 10 quoted lines
> 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.
Show 7 quoted lines
> 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