update_cached_repo(): Actually update.

This commit is contained in:
tastytea 2020-10-14 03:17:21 +02:00
parent eebef0aca7
commit 6cf543a7b4
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 0 deletions

View File

@ -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);