]> git.proxmox.com Git - libgit2.git/commit
git_checkout_tree options fix
authorStefan Huber <steffhip@gmail.com>
Tue, 23 Aug 2016 23:20:39 +0000 (01:20 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Sat, 1 Oct 2016 15:41:28 +0000 (17:41 +0200)
commite499b13cb0dc0c47a1ed31ed568f3a226c4bc42f
tree8d5282bb09c78ed4c350f0e2b5a03e34fb184a66
parent12b73ff3806d167cf2561c0b21e5354bb6f81601
git_checkout_tree options fix

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.
src/checkout.c
tests/checkout/tree.c