FIX: Add --tags to git fetch in updater

Overwrites local tags with those from github (useful if they've been changed on github)

From https://git-scm.com/docs/git-fetch#git-fetch---tags

--tags
    Fetch all tags from the remote (i.e., fetch remote tags refs/tags/* into local tags with the same name), in addition to whatever else would otherwise be fetched.

See https://meta.discourse.org/t/latest-version-bug/58165
This commit is contained in:
David Taylor 2017-03-07 18:20:29 +00:00 committed by GitHub
parent 6cc5e4856b
commit 8e3f37c5ec
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class DockerManager::Upgrader
# HEAD@{upstream} is just a fancy way how to say origin/master (in normal case)
# see http://stackoverflow.com/a/12699604/84283
run("cd #{@repo.path} && git fetch && git reset --hard HEAD@{upstream}")
run("cd #{@repo.path} && git fetch --tags && git reset --hard HEAD@{upstream}")
log("********************************************************")
log("*** Please be patient, next steps might take a while ***")
log("********************************************************")