Skip to content

handle the presence of index.lock better #908

Open

Description

@shiftkey

Seems to be an uptick in these occurring, at least on Windows. VSCode 1.9.0 might be to blame (i wasn't running Desktop:TNG at the time):

Activity

  1. shiftkey commented on Feb 7, 2017

    @shiftkey
    MemberAuthor

    Everything is terrible (note that it's not git.exe doing this):

  2. self-assigned this
    on Aug 29, 2017
  3. removed their assignment
    on Sep 21, 2017
  4. NickCraver commented on Feb 8, 2018

    @NickCraver
    Contributor

    I hit this today as well. I was reverting the deletion of 8,000+ files (via "discard all changes" and GitHub Desktop would revert about 1,000-1,500 of them and then crash. VS Code was open pointed at this directory, but I'm thus far unable to repro on my laptop (different machine) with the same setup.

    Attaching logs in case this scenario helps: 2018-02-07.desktop.production.log

  5. tierninho commented on Apr 28, 2020

    @tierninho
    Contributor

    Two occurrences of a lock file error that caused problems for a user in #9629

    Attempting to stash the local changes produced this error message from git:

    fatal: Unable to create '/Users/eric/Dev/sjma-50x50/.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.

    and

    the error never surfaced when the user was cloning a repo. The repo became corrupted as a result and the user had to reclone.

  6. added
    not-planned
    on Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions