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
cd6354a5
Commit
cd6354a5
authored
Nov 15, 2013
by
Joshua Kalpin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix method calls to follow proper conventions
parent
81231826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sources_manager.rb
lib/cocoapods/sources_manager.rb
+4
-4
No files found.
lib/cocoapods/sources_manager.rb
View file @
cd6354a5
...
@@ -167,8 +167,8 @@ module Pod
...
@@ -167,8 +167,8 @@ module Pod
# @return [Bool] Whether the given source's remote is reachable.
# @return [Bool] Whether the given source's remote is reachable.
#
#
def
git_remote_reachable?
(
dir
)
def
git_remote_reachable?
(
dir
)
Dir
.
chdir
(
dir
)
{
`git ls-remote`
}
Dir
.
chdir
(
dir
)
{
git
(
'ls-remote'
)
}
$?
.
exitstatus
.
zero
?
$?
.
success
?
end
end
# Returns whether a source is a GIT repo.
# Returns whether a source is a GIT repo.
...
@@ -179,8 +179,8 @@ module Pod
...
@@ -179,8 +179,8 @@ module Pod
# @return [Bool] Whether the given source is a GIT repo.
# @return [Bool] Whether the given source is a GIT repo.
#
#
def
git_repo?
(
dir
)
def
git_repo?
(
dir
)
Dir
.
chdir
(
dir
)
{
`git rev-parse >/dev/null 2>&1`
}
Dir
.
chdir
(
dir
)
{
git
(
'rev-parse >/dev/null 2>&1'
)
}
$?
.
exitstatus
.
zero
?
$?
.
success
?
end
end
# Checks the version information of the source with the given directory.
# Checks the version information of the source with the given directory.
...
...
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