| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@rcjsuen Thanks for the doc fix! It's a little scary that we're letting the Oid get all the way to git_checkout_tree, which is expecting a git_object (and a git_oid is not a git_object) :-( Checkout.tree does seem to take a String though - in your example, you could try tag.id().toString(). Could I bother you to replace Oid with String in the docs, to reflect that? |
Sorry, something went wrong.
The treeish parameter claims that an Oid is valid but the underlying git_checkout_tree C api does not actually support Oid as a parameter. The JavaScript function does however take a String. Fix the documentation to replace Oid with String as a valid parameter.
| Back | FazBrowse Home | New Git URL |
The docs incorrectly spec that an Oid can be used as a treeish but the libgit2 git_checkout_tree API actually only supports "a commit, tag or tree".
The following code will reproduce the problem.