diff options
| author | Maurice Kelly | 2012-04-15 14:20:54 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-04-15 14:41:41 -0500 |
| commit | 3ab2cc62e2b4bd41f78516b0d3b856466979846c (patch) | |
| tree | 15cdfbaa1e4b52038a180c5017759475796faf7e /Library/Homebrew/cmd | |
| parent | 1d0be89fa5bbe9aa07fcacad0c369437553129fc (diff) | |
| download | brew-3ab2cc62e2b4bd41f78516b0d3b856466979846c.tar.bz2 | |
info: handle git:// URLs in origin remote
The URL being constructed is only able to extract the correct username
when git@ or https:// URLs are found as the origin remote. This change
allows git:// to be used as well.
Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk>
Closes Homebrew/homebrew#11670.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 3edb6abce..0a9cb76db 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -22,7 +22,7 @@ module Homebrew extend self def github_fork if system "/usr/bin/which -s git" - if `git remote -v` =~ %r{origin\s+(https?://|git@)github.com[:/](.+)/homebrew} + if `git remote -v` =~ %r{origin\s+(https?://|git(?:@|://))github.com[:/](.+)/homebrew} $2 end end |
