]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
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 4eeb02ea9180aa8aa1bc7bb72b6b14c170630c5d..b417ff1faad3ede91744e4b35e9bb978612cebd1 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}' ..."