parent
47cdd4d819
commit
6629a9e23f
@ -21,7 +21,7 @@ module Homebrew extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
def github_fork
|
def github_fork
|
||||||
if which 'git'
|
if which 'git' and (HOMEBREW_REPOSITORY/".git").directory?
|
||||||
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
|
$2
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user