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:
parent
6cc5e4856b
commit
8e3f37c5ec
|
|
@ -20,7 +20,7 @@ class DockerManager::Upgrader
|
||||||
|
|
||||||
# HEAD@{upstream} is just a fancy way how to say origin/master (in normal case)
|
# HEAD@{upstream} is just a fancy way how to say origin/master (in normal case)
|
||||||
# see http://stackoverflow.com/a/12699604/84283
|
# 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("********************************************************")
|
||||||
log("*** Please be patient, next steps might take a while ***")
|
log("*** Please be patient, next steps might take a while ***")
|
||||||
log("********************************************************")
|
log("********************************************************")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue