Cloning should use GIT_CHECKOUT_SAFE_CREATE as a checkout strategy according to libgit2 docs
Merge pull request #162 from dmgctrl/master

Update clone checkout strategy to GIT_CHECKOUT_SAFE_CREATE