Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GIT_OPTIONAL_LOCKS=0 to all Git calls #4440

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Add GIT_OPTIONAL_LOCKS=0 to all Git calls #4440

merged 1 commit into from
Aug 8, 2023

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Aug 7, 2023

Related to #4111 & iterative/dvc#9749

Docs

GIT_OPTIONAL_LOCKS

If this Boolean environment variable is set to false, Git will complete any requested operation without performing any optional sub-operations that require taking a lock. For example, this will prevent git status from refreshing the index as a side effect. This is useful for processes running in the background which do not want to cause lock contention with other operations on the repository. Defaults to 1.

@mattseddon mattseddon self-assigned this Aug 7, 2023
@mattseddon mattseddon marked this pull request as ready for review August 7, 2023 22:32
@codeclimate
Copy link

codeclimate bot commented Aug 7, 2023

Code Climate has analyzed commit 62f38f9 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.3% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon requested a review from shcheklein August 7, 2023 23:52
@mattseddon mattseddon merged commit c664350 into main Aug 8, 2023
@mattseddon mattseddon deleted the add-git-locks branch August 8, 2023 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants