Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: path splitter gets removed if no path spec exists #929

Closed
thomaszub opened this issue Jun 21, 2023 · 1 comment
Closed

Bug: path splitter gets removed if no path spec exists #929

thomaszub opened this issue Jun 21, 2023 · 1 comment

Comments

@thomaszub
Copy link
Contributor

Hi,

I have currently the issue, that the path splitter -- is removed if no path spec exists, e.g. git checkout -f dev -- becomes git checkout -f dev.
This can be an issue if for example in a repository with a file dev, no local branch dev and a remote branch origin/dev. The checkout command can not decide which operation to perform (create local branch or restore file) and quits with an error.
This can be reproduced in the repository: https://github.com/thomaszub/simple-git-co-bug

I make a PR.

Kind regards
Thomas

thomaszub added a commit to thomaszub/git-js that referenced this issue Jun 21, 2023
thomaszub added a commit to thomaszub/git-js that referenced this issue Jun 21, 2023
@steveukx
Copy link
Owner

Hi, thank you for the pull request. You can now use this feature as part of the 3.19.1 release which is available on npm now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants