aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index 1dbe1a64a..ffd2c00c8 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -61,9 +61,9 @@ class Formula
end
end
- def rev_list
+ def rev_list branch='HEAD'
repository.cd do
- `git rev-list --abbrev-commit HEAD -- #{entry_name}`.split
+ `git rev-list --abbrev-commit #{branch} -- #{entry_name}`.split
end
end