From 6cf543a7b47fe605c751e796c5886549d4361e17 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 14 Oct 2020 03:17:21 +0200 Subject: [PATCH] update_cached_repo(): Actually update. --- src/git.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/git.cpp b/src/git.cpp index 6e8ffa7..c9f5c05 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -253,6 +253,7 @@ void update_cached_repo() check(git_checkout_options_init(&checkout_opts, GIT_CHECKOUT_OPTIONS_VERSION)); checkout_opts.checkout_strategy = GIT_CHECKOUT_FORCE; + check(git_repository_set_head(_repo, "refs/heads/main")); check(git_checkout_head(_repo, &checkout_opts)); git_remote_free(remote);