From 842ae5dfee4c41e8c5f390bd096fbf018453afef Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 1 Oct 2016 13:29:18 +0100 Subject: update-test: add --to-tag option. This option is used to test updating between tags. --- Library/Homebrew/dev-cmd/update-test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb index 18980b691..8d0391f66 100644 --- a/Library/Homebrew/dev-cmd/update-test.rb +++ b/Library/Homebrew/dev-cmd/update-test.rb @@ -8,11 +8,16 @@ #: If `--before=` is passed, use the commit at `` as the #: start commit. #: +#: If `--to-tag` is passed, set HOMEBREW_UPDATE_TO_TAG to test updating +#: between tags. +#: #: If `--keep-tmp` is passed, retain the temporary directory containing #: the new repository clone. module Homebrew def update_test + ENV["HOMEBREW_UPDATE_TO_TAG"] = "1" if ARGV.include?("--to-tag") + cd HOMEBREW_REPOSITORY start_commit = if commit = ARGV.value("commit") commit -- cgit v1.2.3