Skip to content

git fails to save a snapshot #263

@ycollet

Description

@ycollet

For time to time, I've got the error message:

18:31:17  git s'est terminé avec un code d'erreur.
commit -m ray

So, I dug into the Ray Session directory. I saw a commit nearly ready so I tried a "git commit -m "ray"":

[... .ray-snapshots] $ git commit -m "ray"
fatal : cannot lock ref 'HEAD': Impossible de créer '/home/collette/Ray Sessions/NonMixerXT/.ray-snapshots/HEAD.lock' : Le fichier existe.

Il semble qu'un autre processus git est déjà lancé dans ce dépôt,
par exemple un éditeur ouvert par 'git commit'. Veuillez vous assurer
que tous les processus sont terminés et réessayez. Si l'échec persiste,
un processus git peut avoir planté :
supprimez le fichier manuellement pour poursuivre.

I removed the file and tried again "git commit -m "ray"":

[... .ray-snapshots] $ git commit -m "ray"
fatal : cannot lock ref 'HEAD': Impossible de créer '/home/collette/Ray Sessions/NonMixerXT/.ray-snapshots/refs/heads/master.lock' : Le fichier existe.

I removed this file and then the problem disappeared.

Maybe checking for the existence of such files if a problem occurs while saving a snapshot should be a good idea ...

Metadata

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