Skip to content

fatal: Unable to create '/path/to/repo/.git/index.lock': File exists. #1633

@Cyberbeni

Description

@Cyberbeni

Occasionally when I bring Fork to the foreground and press the Commit and Push button immediately, I will get the error mentioned in the title. This is probably caused by the automatic fetch (triggered by bringing the app to the foreground) creating a lock file and the commit command being started without waiting for it to finish (Because retrying the commit right after always works). I think it would be better to wait for previous commands in the same repo to complete.

There is also a similar error when I "Commit and Push" and then immediately want to "Push and create pull request" which would also be solved by serialising these commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions