aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-06 16:44:11 -0400
committerMax Howell2012-08-06 16:44:11 -0400
commit08fddfdbc20a4e73de73a725446414b168fb368a (patch)
treecd56c8c13d3297fa79de77ef270072e4a4d9994c /Library
parent188d3e3781979b66e94bb5384dd96645a2270f8a (diff)
downloadhomebrew-08fddfdbc20a4e73de73a725446414b168fb368a.tar.bz2
Don't error out if never `brew updated`
Fixes #12944.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 02cacff1d..96152a5c8 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -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