Allow deleting of branches before anything is pulled
[jprojects-scripts.git] / pull-stick.sh
index 4eeb02e..b417ff1 100755 (executable)
@@ -11,6 +11,11 @@ for project in ${LIST}; do
 
        cd "${JPROJECTS_HOME}/${project}" || exit 255
 
+       if [ -n "$2" ]
+       then
+               git branch -D "$2"
+       fi
+
        if [ "$1" = "c" ]
        then
                echo "$0: Checkout '${project}' ..."