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

Refactor Tree#/ #46

Merged
merged 1 commit into from Oct 21, 2018
Merged

Refactor Tree#/ #46

merged 1 commit into from Oct 21, 2018

Conversation

dometto
Copy link
Contributor

@dometto dometto commented Oct 21, 2018

Going through this project's history I noticed that currently, the Tree#/ method uses exception-catching to return the proper tree (self) in case the argument is '/'. This was introduced as a fix in #29, as before calling tree / '/' would raise a jgit argument error ("Empty path not permitted"). But I think using exceptions to determine flow like that is not very clean (what if an argument error is thrown for some other reason?). Hence this alternative attempt at dealing with '/' as an argument.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.626% when pulling f529613 on dometto-patch-1 into 84a9240 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.626% when pulling f529613 on dometto-patch-1 into 84a9240 on master.

@bartkamphorst
Copy link
Contributor

Works for me! 👍

@dometto dometto merged commit 0623e2a into master Oct 21, 2018
@dometto dometto deleted the dometto-patch-1 branch November 10, 2018 16:41
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.

None yet

3 participants