Thanks to visit codestin.com
Credit goes to github.com

Skip to content

git_checkout_tree options fix #3907

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

Closed
wants to merge 3 commits into from

Conversation

steffhip
Copy link
Contributor

According to the reference the git_checkout_tree and git_checkout_head
functions should accept NULL in the opts field

This was broken since the opts field was dereferenced and thus lead to a
crash.

According to the reference the git_checkout_tree and git_checkout_head
functions should accept NULL in the opts field

This was broken since the opts field was dereferenced and thus lead to a
crash.
@Inesteem
Copy link

Yeah, this would fix my work, too:D
(Up to now it will only work using version 0.23)

@ethomson
Copy link
Member

Definitely looks like a good fix. Could I also trouble you to add a test that calls git_checkout_tree with a NULL opts? Otherwise I think that I'm likely to break this again. ;)

Thanks!

@pks-t
Copy link
Member

pks-t commented Aug 29, 2016

Thanks for the fix and test. Considering it is only one test and we already have tests for git_checkout_tree, could you maybe move the test into tests/checkout/tree.c? Thanks 👍

@pks-t
Copy link
Member

pks-t commented Aug 30, 2016

Manually squashed and merged via a08e882

@pks-t pks-t closed this Aug 30, 2016
@pks-t
Copy link
Member

pks-t commented Aug 30, 2016

Thanks for the fix ✨

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.

4 participants