Allow deleting of branches before anything is pulled
authorRoland Haeder <rhaeder@cho-time.de>
Fri, 22 Jul 2016 08:42:22 +0000 (10:42 +0200)
committerRoland Haeder <rhaeder@cho-time.de>
Fri, 22 Jul 2016 08:42:22 +0000 (10:42 +0200)
Signed-off-by: Roland Haeder <rhaeder@cho-time.de>
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}' ..."