From: Joey Hess Date: Thu, 11 Oct 2007 05:12:00 +0000 (-0400) Subject: don't push unless the commit succeeded! X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/052ba0de1db046987852e41b14c2fc78ebd905f2?ds=sidebyside don't push unless the commit succeeded! --- diff --git a/mr b/mr index e1c8a06..ee5e5e2 100755 --- a/mr +++ b/mr @@ -350,8 +350,7 @@ commit = \ if [ -d .svn ]; then \ svn commit "$@"; \ elif [ -d .git ]; then \ - git commit -a "$@"; \ - git push --all; \ + git commit -a "$@" && git push --all; \ else \ echo "mr commit: unknown repo type"; \ exit 1; \