From 7507738fca3b693f9acab619645052e320f693ed Mon Sep 17 00:00:00 2001
From: Stefan Zweifel <hello@stefanzweifel.io>
Date: Sun, 7 Feb 2021 16:07:43 +0100
Subject: [PATCH] Use git branch --list

---
 entrypoint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/entrypoint.sh b/entrypoint.sh
index 3890c05..5986d5b 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -65,7 +65,7 @@ _switch_to_branch() {
         # If not create one
 
 
-        if [ -n "$(git branch | grep $INPUT_BRANCH)" ]
+        if [ -n "$(git branch --list $INPUT_BRANCH)" ]
         then
 
             # Switch to branch from current Workflow run