Skip to content

Commit

Permalink
Add rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
saleyn committed May 26, 2010
1 parent 22ea9a3 commit ceeddb8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/update_docs
Expand Up @@ -15,12 +15,17 @@ git rm -fr src vsn.mk
mv doc/* .
rmdir doc

ret=0

set +e
if ! git commit -a ; then
if git commit -a ; then
git push origin
else
ret=1
git reset --hard
exit 1
fi
set -e

git push origin
git co master

exit $ret

0 comments on commit ceeddb8

Please sign in to comment.