#! /bin/sh

owndir="$HOME"/public_html/leafnode/leafnode-2.git/

a=0
echo "===>  Pushing to own home directory"
git push --tags "$owndir" || a=1
echo "===>  Repacking"
( cd "$owndir" && git repack --max-pack-size=1 --window=250 --depth=250 -d -l )
echo "===>  Pushing to BerliOS"
git push --tags ssh://m-a@git.berlios.de/gitroot/leafnode/ || a=1
echo "===>  Finished."
if [ $a -eq 0 ] ; then
  echo "Success."
else
  echo "Error, see above for details!"
fi
exit $a

#! /bin/sh

owndir="$HOME"/public_html/leafnode/leafnode-2.git/

a=0
echo "===>  Pushing to own home directory"
git push --tags "$owndir" : || a=1
echo "===>  Repacking"
( cd "$owndir" && git repack --max-pack-size=1 --window=250 --depth=250 -d -l )
echo "===>  Pushing to BerliOS"
git push --tags ssh://m-a@git.berlios.de/gitroot/leafnode/ : || a=1
echo "===>  Finished."
if [ $a -eq 0 ] ; then
  echo "Success."
else
  echo "Error, see above for details!"
fi
exit $a

Fix regression: Push branches, too, not just tags.
Fix regression: Push branches, too, not just tags.
