diff options
Diffstat (limited to 'Library/Homebrew/utils/git.rb')
| -rw-r--r-- | Library/Homebrew/utils/git.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/Library/Homebrew/utils/git.rb b/Library/Homebrew/utils/git.rb index dfe47f890..1b4d24894 100644 --- a/Library/Homebrew/utils/git.rb +++ b/Library/Homebrew/utils/git.rb @@ -40,4 +40,9 @@ module Utils      @git_path = nil      @git_version = nil    end + +  def self.git_remote_exists(url) +    return true unless git_available? +    quiet_system "git", "ls-remote", url +  end  end | 
