Prepend letter v to version numbers
Disqus: https://about.gitlab.com/2015/12/02/gitlab-8-dot-2-dot-2-released/#comment-2397410442:
On the documentation on updating gitlab-workhorse(http://doc.gitlab.com/ce/update/patch_versions.html#update-gitlab-workhorse-to-the-corresponding-version), the outlined update steps fail because workhorse version tags do not have a letter v
cd /home/git/gitlab-workhorse
sudo -u git -H git fetch
sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_WORKHORSE_VERSION` -b v`cat /home/git/gitlab/GITLAB_WORKHORSE_VERSION`
The following is the error generated when the steps are followed:
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'v0.4.2' which can not be resolved as commit?
When I run the same command without the v
it works flawlessly. I.e.
sudo -u git -H git checkout `cat /home/git/gitlab/GITLAB_WORKHORSE_VERSION` -b `cat /home/git/gitlab/GITLAB_WORKHORSE_VERSION`
checks out to the correct version
Switched to a new branch '0.4.2'
I propose rather than changing the documentation, we prepend v
to all version numbers as we have on other GitLab modules e.g. gitlab-shell