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

TreeUtils.getId with empty path #7

Open
sonson opened this issue Aug 30, 2012 · 0 comments
Open

TreeUtils.getId with empty path #7

sonson opened this issue Aug 30, 2012 · 0 comments

Comments

@sonson
Copy link

sonson commented Aug 30, 2012

Another feature request once again:

it would be useful for me, when you could call TreeUtils.getId() with an empty path and get the ID of the root directory:
rootId = TreeUtils.getId(repository, "HEAD", "")

Now an IllegalArgumentException is thrown: Empty path not permitted..
It would be a pleasure if the gitective-API could handle the special case of an empty path (and also: "/").

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

No branches or pull requests

1 participant