Skip to content

Spock + Laravel Forge #50

@skauk

Description

@skauk

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions