Fix checking out branch names with / chars#106
Fix checking out branch names with / chars#106docwhat wants to merge 1 commit intostefanzweifel:masterfrom
Conversation
If a branch has a file-path looking name, then `git checkout` can get confused. `git switch` won't.
|
@docwhat Can you give an example of a „file-path looking name“? You mean something like „git checkout update-entrypoint.sh“? Unfortunately the testsuite isn‘t complete yet, so I will have to test such stuff manually. I remember that „git switch“ somehow didn‘t work a few months ago on GitHub Action. |
|
This is a weird problem. I could still reproduce the error and open #108. Just calling |
|
The mentioned PR #108 has been merged. I will tag a new version soon. As mentioned, I might switch to |
git checkout pr/complex-branchesIf you need to stick to using git checkout pr/complex-branches --You may have seen this error message: |
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 <command> [<revision>...] -- [<file>...]'
Fixes: stefanzweifel#106
If a branch has a file-path looking name, then
git checkoutcan get confused.
git switchwon't.