Commit ccc42762 authored by Fabio Pelosin's avatar Fabio Pelosin

[SourcesManager] Removed unused #git_remote_reachable? method

parent fbd48c13
......@@ -169,18 +169,6 @@ module Pod
end
end
# Returns whether a git repo's remote is reachable.
#
# @param [Pathname] dir
# The directory where the source is stored.
#
# @return [Bool] Whether the given source's remote is reachable.
#
def git_remote_reachable?(dir)
Dir.chdir(dir) { git('ls-remote') }
$?.success?
end
# Returns whether a source is a GIT repo.
#
# @param [Pathname] dir
......
......@@ -134,11 +134,6 @@ module Pod
UI.warnings.should.include('not able to update the `master` repo')
end
it 'returns whether a source has a reachable git remote' do
SourcesManager.git_remote_reachable?(repo_make('a_new_repo_that_is_new')).should.be.false
SourcesManager.git_remote_reachable?(SourcesManager.master_repo_dir).should.be.true
end
it "returns whether a source is backed by a git repo" do
SourcesManager.git_repo?(SourcesManager.master_repo_dir).should.be.true
SourcesManager.git_repo?(Pathname.new('/tmp')).should.be.false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment