From f905f0070663c49141cb0115b09d8f2ef0e99573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ho=CC=88ltje?= Date: Mon, 12 Oct 2020 10:17:25 -0400 Subject: [PATCH] Fix checking out branch names with / chars If git can't automatically figure out if the argument is a branch or a path, it will need to be told explicitly by using `--`: Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' Fixes: #106 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d5e0540..70ab4ab 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,7 +43,7 @@ _switch_to_branch() { git fetch; # Switch to branch from current Workflow run - git checkout $INPUT_BRANCH; + git checkout "$INPUT_BRANCH" --; } _add_files() {