Skip to content

fugitive: fatal: Unable to create <...> File exists. #1624

Closed
@feddischson

Description

Hi,

I get the error while doing twice a :Gwrite (same or different file).

fugitive: fatal: Unable to create '.../.git/index.lock': File exists.^@^@Another git process seems to be running in this repository, e.g.^@an editor opened by 'git commit'. Please make sure all processes^@are terminated
 then try again. If it still fails, a git process^@may have crashed in this repository earlier:^@remove the file manually to continue.

The file does not exist, there is no other IDE or other git process running. I tried the master, race-condition branch as well as tags/v3.*.
It is possible to close and open vim to recover, then :Gwrite works one time, the second time fails again.

As it works on my other machines, I guess it is a issue with my setup (different linux, different git version, ...). Is there any possibility to turn on some debug output or logging to track down this issue?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions