-
Notifications
You must be signed in to change notification settings - Fork 154
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
Consider the case where the path points at a directory. #221
Conversation
c5f5f9b
to
734042d
Compare
except OSError: | ||
# path points to a directory containing untracked files | ||
rmtree(full_path, | ||
onerror=Repository.checkout_fail_rmtree_callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use a lambda here instead of a static method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
Can you please write a test for this use case? |
Tests are still failing |
…#195 Consider the case where the path points at a directory.
Fix #195