aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/log.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 16:51:15 -0600
committerJack Nagel2014-02-28 16:51:15 -0600
commit26785dbe5ddaee3f71d64d4a9f8b92274ec3a366 (patch)
tree9a64c811717d00b5b3fdf05629f4b6b96c355ee2 /Library/Homebrew/cmd/log.rb
parent2d50501c4e97849f5fa265a0bbe4e1846904854e (diff)
downloadbrew-26785dbe5ddaee3f71d64d4a9f8b92274ec3a366.tar.bz2
Use Formula.path
Diffstat (limited to 'Library/Homebrew/cmd/log.rb')
-rw-r--r--Library/Homebrew/cmd/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb
index 5f0ef63c8..ca005d553 100644
--- a/Library/Homebrew/cmd/log.rb
+++ b/Library/Homebrew/cmd/log.rb
@@ -8,7 +8,7 @@ module Homebrew extend self
path = ARGV.formulae.first.path.realpath
rescue FormulaUnavailableError
# Maybe the formula was deleted
- path = HOMEBREW_REPOSITORY/"Library/Formula/#{ARGV.named.first}.rb"
+ path = Formula.path(ARGV.named.first)
end
cd path.dirname # supports taps
exec "git", "log", *ARGV.options_only + ["--", path]