Git rebase dies with fatal: Unable to create '.../.git/index.lock': File exists.

2013-09-16 Thread Jason Gunthorpe
Scenario, run: $ git rebase v3.10.12 --autosquash -i And randomly get this: fatal: Unable to create '.../linux/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git

Re: Git rebase dies with fatal: Unable to create '.../.git/index.lock': File exists.

2013-09-16 Thread Jeff King
On Mon, Sep 16, 2013 at 12:28:52PM -0600, Jason Gunthorpe wrote: I have emacs windows open that have files within the git tree open in them. My emacs has vc-git mode loaded and global-auto-revert-mode set. During the rebase the files open in emacs are changed by git, when emacs notices this

Re: Git rebase dies with fatal: Unable to create '.../.git/index.lock': File exists.

2013-09-16 Thread Jason Gunthorpe
On Mon, Sep 16, 2013 at 05:15:01PM -0400, Jeff King wrote: On Mon, Sep 16, 2013 at 12:28:52PM -0600, Jason Gunthorpe wrote: I have emacs windows open that have files within the git tree open in them. My emacs has vc-git mode loaded and global-auto-revert-mode set. During the rebase the

Re: Git rebase dies with fatal: Unable to create '.../.git/index.lock': File exists.

2013-09-16 Thread Jeff King
On Mon, Sep 16, 2013 at 03:21:59PM -0600, Jason Gunthorpe wrote: I'm not clear on which git commands are being run. If they are actually mutating the index, then isn't this more than a lock contention issue? In other words, git rebase is assuming nobody is mucking with the index while it