Update latesttag in all cases
Set latesttag before it is bypassed by return statement and old_tag being blank.
This commit is contained in:
parent
ae2196fa57
commit
a94f6ec50c
@ -132,6 +132,8 @@ module Homebrew
|
||||
"git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*"
|
||||
).lines.first.chomp
|
||||
|
||||
Settings.write "latesttag", new_tag if new_tag != old_tag
|
||||
|
||||
if old_tag.blank? || (new_tag == old_tag)
|
||||
puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}."
|
||||
else
|
||||
@ -238,7 +240,6 @@ module Homebrew
|
||||
|
||||
puts
|
||||
ohai "Homebrew was updated to version #{new_tag}"
|
||||
Settings.write "latesttag", new_tag if new_tag != old_tag
|
||||
if new_tag.split(".").last == "0"
|
||||
puts <<~EOS
|
||||
More detailed release notes are available on the Homebrew Blog:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user