diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-12-13 13:45:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-12-13 13:45:11 +0000 |
commit | 8fbcd5127bfdd0233da2e563e592c3eff8d30637 (patch) | |
tree | db67fc91d29a8fbd37ec6f57367604a45d0cc127 /git/bin/git-checkout-branches | |
parent | Adding upstream version 20210928. (diff) | |
download | open-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/git-checkout-branches')
-rwxr-xr-x | git/bin/git-checkout-branches | 7 |
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 |