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

Properly disambiguate between branch or file checkout #199

Merged
merged 2 commits into from Jan 12, 2022

Conversation

kenodegard
Copy link
Contributor

This fixes the case for where a repo contains a directory/file that happens to be the same as the branch name and git checkout is unable to properly disambiguate and needs extra help.

The issue is fully outlined here: https://stackoverflow.com/a/60875971

Copy link
Owner

@stefanzweifel stefanzweifel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
I've added a test case based on the example on the StackOverflow question.

@stefanzweifel stefanzweifel merged commit 5804e42 into stefanzweifel:master Jan 12, 2022
@kenodegard kenodegard deleted the disambiguate branch January 12, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants