aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-07 09:18:14 -0400
committerMax Howell2012-08-07 14:24:09 -0400
commit538e36a38ac453a45c2ac19cdd9c8a8b1e4ad61a (patch)
tree97d8e8ddafb8a51356883c5c6966b224194d740c /Library
parentdaf5275be4aeef3041d6c2edd1c1f2115ba12613 (diff)
downloadhomebrew-538e36a38ac453a45c2ac19cdd9c8a8b1e4ad61a.tar.bz2
`brew tap` by itself handles dashes in usernames
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tap.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index ee083eb00..ecc5ab270 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -4,7 +4,8 @@ module Homebrew extend self
if ARGV.empty?
tapd = HOMEBREW_LIBRARY/"Taps"
tapd.children.each do |tap|
- puts tap.basename.sub('-', '/') if (tap/'.git').directory?
+ # only replace the *last* dash: yes, tap filenames suck
+ puts tap.basename.to_s.reverse.sub('-', '/').reverse if (tap/'.git').directory?
end if tapd.directory?
elsif ARGV.first == "--repair"
repair_taps