diff --git a/src/git.cpp b/src/git.cpp index 023efed..3c9016b 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -248,7 +248,7 @@ void update_cached_repo() git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT; options.checkout_strategy = GIT_CHECKOUT_FORCE; - check(git_checkout_head(_repo, options)); + check(git_checkout_head(_repo, &options)); git_remote_free(remote); }