Skip to content
Snippets Groups Projects
Commit 59933f5c authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update-test: fix --to-tag failure on new tag.

Without this updating to a tag will always have the same start commit
and end commit as there's been no updates to `master` since the tag was
created.
parent 8a7317aa
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ module Homebrew
commit
elsif date = ARGV.value("before")
Utils.popen_read("git", "rev-list", "-n1", "--before=#{date}", "origin/master").chomp
elsif ARGV.include?("--to-tag")
Utils.popen_read("git", "tag", "--list", "--sort=-version:refname").lines[1].chomp
else
Utils.popen_read("git", "rev-parse", "origin/master").chomp
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment