mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-06-16 16:38:51 +00:00
Fix checking out branch names with / chars
If a branch has a file-path looking name, then `git checkout` can get confused. `git switch` won't.
This commit is contained in:
parent
f922a52bf1
commit
31f730400e
@ -40,7 +40,7 @@ _switch_to_branch() {
|
||||
echo "INPUT_BRANCH value: $INPUT_BRANCH";
|
||||
|
||||
# Switch to branch from current Workflow run
|
||||
git checkout $INPUT_BRANCH;
|
||||
git switch "$INPUT_BRANCH";
|
||||
}
|
||||
|
||||
_add_files() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user