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
commit3b23cf102f6778540766e1db0fca31ecabebc6d4 (patch)
tree5dc635b427d000a3afd6af4eff3c589a27a93c0b /Library
parentcbee0bd2ee617531103b4f179231824aee9838a3 (diff)
downloadbrew-3b23cf102f6778540766e1db0fca31ecabebc6d4.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