Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
ccc42762
Commit
ccc42762
authored
Aug 13, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SourcesManager] Removed unused #git_remote_reachable? method
parent
fbd48c13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
sources_manager.rb
lib/cocoapods/sources_manager.rb
+0
-12
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+0
-5
No files found.
lib/cocoapods/sources_manager.rb
View file @
ccc42762
...
...
@@ -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
...
...
spec/unit/sources_manager_spec.rb
View file @
ccc42762
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment