python-git
python-git copied to clipboard
git pull error.
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'.'
Hey. I really wish I could look into this right now, but at the moment my hands are full.
Best of luck.