-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Hi! I have a setup with Statamic, Spock and Laravel Forge and quite often get the following failure when quick deploy runs:
error: cannot lock ref 'refs/remotes/origin/master': is at <last commit hash> but expected <previous commit hash>
From gitlab.com:organizayion/reposotory
! <previous commit short hash>..<last commit short hash> master -> origin/master (unable to update local ref)
I have the following deployment script:
git fetch
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
[ $LOCAL = $REMOTE ] && exit 0
git pull origin master
# composer update, php-fpm restart, etc
After getting this deployment failure notification and checking the server the repository is at the latest commit and there are no other problems.
I would really appreciate if someone could help me out finding where the problem is and how can I address it. Thanks!
Metadata
Metadata
Assignees
Labels
No labels