Gitlab Shell error updating from 10.5 to 10.6

Hi, I’m having trouble upgrading my gitlab CE from 10.5 to 10.6 following the guide instructions.

When I type the command:

git checkout v$(</home/git/gitlab/GITLAB_SHELL_VERSION)

I receive the error:

pathspec ‘v6.0.4’ did not match any file(s) known to git

Before this error I checkout gitlab to version 10.6, fetch gitlab shell (git fetch --all --tags --prune) but I can’t see the version 6.0.4 available and that’s why I got this error. Gitlab shell last version available is 6.0.3.

Is there anything I have to do to get v6.0.4 available for checkout and proceed with the upgrade to gitlab 10.6?

Thank you

Check your .git/config. I found I was using the github mirror, which is out of date, and i should have been using the repo instead.

I finally resolved this issue updating gitlab shell remote from github to gitlab.

git remote set-url origin

and then fetching the repo i get the version 6.0.4 and I finally can go on with the upgrade.