summaryrefslogtreecommitdiff
path: root/git/branch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git/branch.sh')
-rwxr-xr-xgit/branch.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/git/branch.sh b/git/branch.sh
index 4362fb4..14d72dd 100755
--- a/git/branch.sh
+++ b/git/branch.sh
@@ -11,5 +11,11 @@ for i in $modules; do
echo "branch $i" 1>&2
cd $i
git branch $*
+
+ if [ $? -ne 0 ]; then
+ echo "branch FAILED" 1>&2
+ exit 1
+ fi
+
cd $wd
done