diff options
| author | Simão Afonso <simao.afonso@powertools-tech.com> | 2020-11-25 18:31:23 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-11-25 12:30:18 -0800 |
| commit | df7f915fb6fb28ea5a1e3103251c251e53a80b1b (patch) | |
| tree | 45236873cfb3b934ff3d7d44d42451fe65c27963 /builtin/commit.c | |
| parent | Seventh batch (diff) | |
| download | git-df7f915fb6fb28ea5a1e3103251c251e53a80b1b.tar.gz git-df7f915fb6fb28ea5a1e3103251c251e53a80b1b.zip | |
crendential-store: use timeout when locking file
When holding the lock for rewriting the credential file, use a timeout
to avoid race conditions when the credentials file needs to be updated
in parallel.
An example would be doing `fetch --all` on a repository with several
remotes that need credentials, using parallel fetching.
The timeout can be configured using "credentialStore.lockTimeoutMS",
defaulting to 1 second.
Signed-off-by: Simão Afonso <simao.afonso@powertools-tech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
