Remove lock files left over in .git/refs
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do?
Remove lock files left over in .git/refs
Why was this MR needed?
When a fetch is interrupted via cancellation or otherwise, lock files may be left behind in .git/refs
.
What's the best way to test this MR?
An integration test has been included.
What are the relevant issue numbers?
Edited by Ben Brown