Report new_tag even when old_tag blank

This commit is contained in:
Darren Kavanagh 2022-07-06 23:24:01 -07:00
parent 387515e75a
commit a25f827b8f
No known key found for this signature in database
GPG Key ID: A258D1E837E3C689

View File

@ -134,8 +134,11 @@ module Homebrew
Settings.write "latesttag", new_tag if new_tag != old_tag
if old_tag.blank? || (new_tag == old_tag)
if new_tag == old_tag
puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}."
elsif old_tag.blank?
ohai "Updated Homebrew from #{shorten_revision(initial_revision)} " \
"to #{new_tag} (#{shorten_revision(current_revision)})."
else
ohai "Updated Homebrew from #{old_tag} (#{shorten_revision(initial_revision)}) " \
"to #{new_tag} (#{shorten_revision(current_revision)})."