We have a PHP script that triggers based on a github webhook to execute git pull on a specific branch. I can run the commands easily manually, but when we try to have the script do it automatically, we keep getting errors.
["error: cannot lock ref 'refs\/remotes\/origin\/dev': ref refs\/remotes\/origin\/dev is at bc75782f3b77b5c03a254cecbf4e16856e2f4155 but expected faa849975f836d8ea4f69c098f1b369aef879c43","From #####:#####\/#####"," ! faa8499..bc75782 dev -> origin\/dev (unable to update local ref)"]
Not sure what to do about this, any ideas?
Thanks!