checkout icon indicating copy to clipboard operation
checkout copied to clipboard

branch names with '|' in the name cannot use the checkout action

Open YossiSaadi opened this issue 3 years ago • 1 comments

Run git checkout CU-2h67a56_-_Tab_|_Fix_margin
  git checkout CU-[2](https://github.com/owner/repo/runId?check_suite_focus=true#step:4:2)h67a56_-_Tab_|_Fix_margin
  shell: /usr/bin/bash -e {0}
/home/runner/work/_temp/b207c445-2[3](https://github.com/owner/repo/runId?check_suite_focus=true#step:4:3)0f-[4](https://github.com/owner/repo/runId?check_suite_focus=true#step:4:5)189-9802-9214288[5](https://github.com/owner/repo/runId?check_suite_focus=true#step:4:6)1cc3.sh: line 1: _Fix_margin: command not found
error: pathspec 'CU-2h67a56_-_Tab_' did not match any file(s) known to git
Error: Process completed with exit code 127.

image

YossiSaadi avatar Aug 23 '22 07:08 YossiSaadi

that's not a bug or an issue, that's correct linux behavior. there's a pipe, so the pipe is used. you must quote during checkout

Run git checkout "CU-2h67a56_-_Tab_|_Fix_margin"

krtschmr avatar Sep 29 '22 06:09 krtschmr