Git support: default checkout strategy to 'force' to support older versions of libgit2

This commit is contained in:
Matthias Koefferlein 2023-10-28 23:49:50 +02:00
parent b56220d36d
commit 2ed44e27ad
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ GitObject::read (const std::string &org_url, const std::string &org_filter, cons
// build checkout options
git_checkout_options checkout_opts = GIT_CHECKOUT_OPTIONS_INIT;
checkout_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
const char *paths_cstr[1];
paths_cstr[0] = filter.c_str ();