aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-10-01 13:29:18 +0100
committerMike McQuaid2016-10-01 13:29:18 +0100
commit842ae5dfee4c41e8c5f390bd096fbf018453afef (patch)
treea36058fd5286a322efe73098527e882b9dfb71b0 /Library/Homebrew/dev-cmd
parent98e7fb6b60c9463bd7d259bb16a00244e95bbc82 (diff)
downloadbrew-842ae5dfee4c41e8c5f390bd096fbf018453afef.tar.bz2
update-test: add --to-tag option.
This option is used to test updating between tags.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/update-test.rb5
1 files changed, 5 insertions, 0 deletions
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=<date>` is passed, use the commit at `<date>` 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