aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-09-24 21:35:07 -0700
committerMike McQuaid2014-10-02 16:03:23 -0700
commit26c76381c873a389f36bc7531cdf940a246ef831 (patch)
treefc796e825263ae389c435e7a0f8f4e2a89f2191a /Library/brew.rb
parentcf41b57fe6588a30644eaa9204cc8668d3d7cc9e (diff)
downloadbrew-26c76381c873a389f36bc7531cdf940a246ef831.tar.bz2
Move SCM wrappers from Contributions to ENV/scm.
Closes Homebrew/homebrew#32615. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/brew.rb')
-rwxr-xr-xLibrary/brew.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index cd2be0774..422fd2c7b 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -108,11 +108,13 @@ begin
end
# Add contributed commands to PATH before checking.
- ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd"
Dir["#{HOMEBREW_LIBRARY}/Taps/*/*/cmd"].each do |tap_cmd_dir|
ENV["PATH"] += "#{File::PATH_SEPARATOR}#{tap_cmd_dir}"
end
+ # Add SCM wrappers.
+ ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_LIBRARY}/ENV/scm"
+
internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) if cmd
# Usage instructions should be displayed if and only if one of: