post-update learns to be quieter

apparently people run it from cron, so this causes a silly one-line
email saying just "Already on master"

thanks to shruggar on #git for pointing out to me that it is quite safe
to use --quiet and will not lose any actual error messages :)
This commit is contained in:
Sitaram Chamarty 2011-01-29 06:16:13 +05:30
parent 1fce051ea1
commit 76ae0268fa

View file

@ -15,7 +15,7 @@ GIT_WORK_TREE=$GL_ADMINDIR git ls-tree --name-only master |
# checkout the master branch to $GL_ADMINDIR
# (the GL_ADMINDIR env var would have been set by gl-auth-command)
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f --quiet master
od=$PWD
cd $GL_ADMINDIR