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
680e66dd
Commit
680e66dd
authored
Dec 20, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Core] Adapt for changes to the Source class
parent
8de8b8c7
Show 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 @
680e66dd
...
...
@@ -143,19 +143,19 @@ module Pod
if
source_name
specified_source
=
aggregate
.
all
.
find
{
|
s
|
s
.
name
==
source_name
}
raise
Informative
,
"Unable to find the `
#{
source_name
}
` repo."
unless
specified_source
raise
Informative
,
"The `
#{
source_name
}
` repo is not a git repo."
unless
git_repo?
(
specified_source
.
repo
)
raise
Informative
,
"The `
#{
source_name
}
` repo is not a git repo."
unless
git_repo?
(
specified_source
.
data_provider
.
repo
)
sources
=
[
specified_source
]
else
sources
=
aggregate
.
all
.
select
{
|
source
|
git_repo?
(
source
.
repo
)
&&
git_remote_reachable?
(
source
.
repo
)
}
sources
=
aggregate
.
all
.
select
{
|
source
|
git_repo?
(
source
.
data_provider
.
repo
)
&&
git_remote_reachable?
(
source
.
data_provider
.
repo
)
}
end
sources
.
each
do
|
source
|
UI
.
section
"Updating spec repo `
#{
source
.
name
}
`"
do
Dir
.
chdir
(
source
.
repo
)
do
Dir
.
chdir
(
source
.
data_provider
.
repo
)
do
output
=
git!
(
"pull"
)
UI
.
puts
output
if
show_output
&&
!
config
.
verbose?
end
check_version_information
(
source
.
repo
)
check_version_information
(
source
.
data_provider
.
repo
)
end
end
end
...
...
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