Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit b3897c1

Browse files
committed
pull: Add argument --tap
1 parent 5263c7f commit b3897c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Library/Homebrew/cmd/pull.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# --branch-okay: Do not warn if pulling to a branch besides master (useful for testing)
2323
# --legacy: Pull legacy formula PR from Homebrew/legacy-homebrew
2424
# (TODO remove it when it's no longer necessary)
25+
# --tap=<tap>: Use the git repository of the given tap
2526
# --no-pbcopy: Do not copy anything to the system clipboard
2627
# --no-publish: Do not publish bottles to Bintray
2728

@@ -81,6 +82,7 @@ def pull
8182
odie "No pull request detected!"
8283
end
8384

85+
tap = Tap.fetch(ARGV.value("tap")) if ARGV.value("tap")
8486
if tap
8587
tap.install unless tap.installed?
8688
Dir.chdir tap.path

0 commit comments

Comments
 (0)