python-git icon indicating copy to clipboard operation
python-git copied to clipboard

git pull error.

Open deepakmali opened this issue 5 years ago • 1 comments

When I run git pull from command line it works fine. But I have python script that pulls every 10 minutes and runs a job. I get the below error intermittently from the script. What can I do to resolve this?

Exception:
Cmd('git') failed due to: exit code(128)
cmdline: git pull
stderr: 'error: Unable to create '<path_here>/.git/ORIG_HEAD.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
process is running and remove the file manually to continue.
fatal: update_ref failed for ref 'ORIG_HEAD': Cannot lock the ref 'ORIG_HEAD'.'

deepakmali avatar Feb 19 '20 06:02 deepakmali

Hey. I really wish I could look into this right now, but at the moment my hands are full.

Best of luck.

chidimo avatar Feb 22 '20 01:02 chidimo