summaryrefslogtreecommitdiffstats
path: root/git/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-13 13:45:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-13 13:45:11 +0000
commit8fbcd5127bfdd0233da2e563e592c3eff8d30637 (patch)
treedb67fc91d29a8fbd37ec6f57367604a45d0cc127 /git/bin
parentAdding upstream version 20210928. (diff)
downloadopen-infrastructure-service-tools-8fbcd5127bfdd0233da2e563e592c3eff8d30637.tar.xz
open-infrastructure-service-tools-8fbcd5127bfdd0233da2e563e592c3eff8d30637.zip
Adding upstream version 20211213.upstream/20211213
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'git/bin')
-rwxr-xr-xgit/bin/git-checkout-branches7
1 files changed, 1 insertions, 6 deletions
diff --git a/git/bin/git-checkout-branches b/git/bin/git-checkout-branches
index f1aa862..e98345d 100755
--- a/git/bin/git-checkout-branches
+++ b/git/bin/git-checkout-branches
@@ -29,16 +29,11 @@ do
BRANCH="$(echo "${REMOTE_BRANCH}" | cut -d/ -f 2-)"
case "${BRANCH}" in
- HEAD)
+ HEAD|${CURRENT_BRANCH})
continue
;;
esac
- if git branch | grep -Eq "^ *${BRANCH}$"
- then
- continue
- fi
-
git checkout -b "${BRANCH}" "${REMOTE_BRANCH}"
done