aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/brew4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index cdb47911e..efb88aa98 100755
--- a/bin/brew
+++ b/bin/brew
@@ -278,7 +278,9 @@ begin
when 'log'
Dir.chdir HOMEBREW_REPOSITORY
- exec "git", "log", ARGV.formulae.first.path, *ARGV.options
+ args = ARGV.options
+ args.unshift ARGV.formulae.first.path unless ARGV.named.empty?
+ exec "git", "log", *args
when 'uses'
# For each formula given, show which other formulas depend on it.