Skip to content

Failures during a checkout can leave the git index locked #558

Closed

Description

@rubyist

I encountered a failure during an lfs checkout that left the git index locked after it bailed out. I'm not yet able to reproduce it reliably. I can manually run a git update-index and kill the process while it's working on a larger file resulting in the index being left locked, so I'm pretty sure that's what's happening. I'm not quite sure which part of the checkout process is exiting early.

The update-index command can provide output which we can watch to make sure we're not shutting down in the middle of processing. e.g.:

$ git update-index -q --refresh --verbose --stdin
1.dat
add '1.dat'
2.dat
3.dat
add '2.dat'
add '3.dat'

This could also be used to add some extra progress info along the lines of #551.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions