Skip to content

Commit

Permalink
Git support: default checkout strategy to 'force' to support older ve…
Browse files Browse the repository at this point in the history
…rsions of libgit2
  • Loading branch information
Matthias Koefferlein committed Oct 28, 2023
1 parent b56220d commit 2ed44e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tl/tl/tlGit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 2ed44e2

Please sign in to comment.