From 5814e3e15103d8a8a7cdb87647b97e977831d602 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 22 Jul 2016 10:42:22 +0200 Subject: [PATCH] Allow deleting of branches before anything is pulled Signed-off-by: Roland Haeder --- pull-stick.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pull-stick.sh b/pull-stick.sh index 4eeb02e..b417ff1 100755 --- a/pull-stick.sh +++ b/pull-stick.sh @@ -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}' ..." -- 2.39.5