aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/edit.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb
index abaefbea8..06be636dc 100644
--- a/Library/Homebrew/cmd/edit.rb
+++ b/Library/Homebrew/cmd/edit.rb
@@ -17,7 +17,12 @@ module Homebrew extend self
else
# Don't use ARGV.formulae as that will throw if the file doesn't parse
paths = ARGV.named.map do |name|
- HOMEBREW_REPOSITORY+"Library/Formula/#{Formula.canonical_name name}.rb"
+ name = Formula.canonical_name name
+ if name.include? '/'
+ Pathname.new(name)
+ else
+ HOMEBREW_REPOSITORY+"Library/Formula/#{name}.rb"
+ end
end
unless ARGV.force?
paths.each do |path|