Pass cache in lambda in clone() by value.

This commit is contained in:
tastytea 2020-10-13 23:11:26 +02:00
parent 2cf7e6a245
commit d01c88e42a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ int cred_acquire(git_cred **cred, const char * /*url*/,
void clone(const bool cache)
{
// clang-format off
const string destination{[&cache]
const string destination{[cache]
{
if (cache)
{