This is a huge pain in the bum. I\'ve got this a few times before and I don\'t understand why. 5 mins ago the repo was fine and working, I move some files around (which is a
For me it was different, nor git init solved the issue nor the worktree was wrong. The error that I had was
git init
worktree
fatal: unable to create threaded lstat fatal: 'git status --porcelain=2' failed in submodule ext/hdf5
The solution for me was git gc.
git gc