mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
1 parent
db0ce4418e
commit
cd01e43c19
1 file changed
+7
-2
@@ -4,9 +4,14 @@ module Homebrew extend self
|
||||
cd HOMEBREW_REPOSITORY
|
||||
exec "git", "log", *ARGV.options_only
|
||||
else
|
||||
path = ARGV.formulae.first.path.realpath
|
||||
begin
|
||||
path = ARGV.formulae.first.path.realpath
|
||||
rescue FormulaUnavailableError
|
||||
# Maybe the formula was deleted
|
||||
path = HOMEBREW_REPOSITORY/"Library/Formula/#{ARGV.named.first}.rb"
|
||||
end
|
||||
cd path.dirname # supports taps
|
||||
exec "git", "log", *ARGV.options_only + [path]
|
||||
exec "git", "log", *ARGV.options_only + ["--", path]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user