rake gitlab:shell:install fails to update existing gitlab-shell
The script tries to check locally for the tag, and because the reset command itself doesn't fail, (it just resets to the local head) the fallback git fetch does not occur.
git reset --hard $(git describe v2.3.1 || git describe origin/v2.3.1) || git fetch origin && git reset --hard $(git describe v2.3.1 || git describe origin/v2.3.1)
fatal: Not a valid object name v2.3.1
fatal: Not a valid object name origin/v2.3.1
fatal: Not a valid object name v2.3.1
fatal: Not a valid object name origin/v2.3.1