diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 3edb6abcee..0a9cb76dbf 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