Closed patricksheehan closed 5 years ago
Is this reproducible? Did you confirm you don't actually have any other process running that might try to modify the git index as the error message suggests?
Yeah it's quite confusing to me. I've tried:
One more detail is that the command-line version does work as intended
Ok this seems to have resolved itself while I was doing some other things. Not sure what the state was that caused it, but I'll close this out!
Interestingly, I am getting this error when running nbstripout within pre-commit on GitHub actions:
https://github.com/pymedphys/pymedphys/pull/486/checks?check_run_id=232417630#step:4:64
Based on the following action:
I tried doing a quick and dirty rm -fv .git/index.lock
before running pre-commit
but it didn't help...
@SimonBiggs have you had a chance to investigate further?
When running
nbstripout
via pre-commit I get the following error:Has anyone run into this? I've tried wiping my pre-commit installation, wiping the local repo, etc.