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

Consider the case where the path points at a directory. #221

Merged
merged 6 commits into from
Mar 7, 2016

Conversation

bogdanpetrea
Copy link
Contributor

Fix #195

@vtemian vtemian force-pushed the fix-checkout-delete-directory-#195 branch from c5f5f9b to 734042d Compare February 18, 2016 13:57
except OSError:
# path points to a directory containing untracked files
rmtree(full_path,
onerror=Repository.checkout_fail_rmtree_callback)
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea!

@vtemian
Copy link
Contributor

vtemian commented Feb 18, 2016

Can you please write a test for this use case?

@vtemian
Copy link
Contributor

vtemian commented Feb 29, 2016

Tests are still failing

@vtemian vtemian assigned bogdanpetrea and unassigned vtemian Feb 29, 2016
vtemian added a commit that referenced this pull request Mar 7, 2016
…#195

Consider the case where the path points at a directory.
@vtemian vtemian merged commit 27176e6 into master Mar 7, 2016
@krodyrobi krodyrobi deleted the fix-checkout-delete-directory-#195 branch March 24, 2016 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants