Pass cache in lambda in clone() by value.
This commit is contained in:
parent
2cf7e6a245
commit
d01c88e42a
|
@ -74,7 +74,7 @@ int cred_acquire(git_cred **cred, const char * /*url*/,
|
||||||
void clone(const bool cache)
|
void clone(const bool cache)
|
||||||
{
|
{
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const string destination{[&cache]
|
const string destination{[cache]
|
||||||
{
|
{
|
||||||
if (cache)
|
if (cache)
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue