From e5f2697c7126cc65ff494279e616541fe8fda0b4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 13 Dec 2021 14:45:16 +0100 Subject: Merging upstream version 20211213. Signed-off-by: Daniel Baumann --- git/bin/git-checkout-branches | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'git') 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 -- cgit v1.2.3