From b8eb56d50bdc846dbe28865b8a7b40a264e262bd Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 14 Oct 2020 02:37:59 +0200 Subject: [PATCH] Fix passing of checkout options in update_cached_repo(). --- src/git.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }