Credential Store: Don't acquire lock when only reading the file
- From
Simão Afonso <simao.afonso@powertools-tech.com>
- Date
- Oct 29, 2020, 19:20 UTC
- Message-ID
- <20201029192020.mcri76ylbdure2o7@safonso-t430>
When git is configured for parallel fetches `fetch.parallel = 0` and uses the `store` credential helper, fetching all remotes might lead to a spurious lock fail. It's a race condition when several remotes require the credentials at the same time.
This shouldn't happen, using the `get` operation should not lock the file.