Don't error out if never brew updated

Fixes Homebrew/homebrew#12944.
This commit is contained in:
Max Howell 2012-08-06 16:44:11 -04:00
parent 47cdd4d819
commit 6629a9e23f

View File

@ -21,7 +21,7 @@ module Homebrew extend self
end
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}
$2
end