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
e4a605bb
Commit
e4a605bb
authored
Sep 30, 2014
by
Daniel Tomlinson
Committed by
Kyle Fuller
Oct 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move master repo checks to its own method
parent
a878a8e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
command.rb
lib/cocoapods/command.rb
+11
-3
No files found.
lib/cocoapods/command.rb
View file @
e4a605bb
...
@@ -41,9 +41,7 @@ module Pod
...
@@ -41,9 +41,7 @@ module Pod
def
self
.
parse
(
argv
)
def
self
.
parse
(
argv
)
command
=
super
command
=
super
unless
SourcesManager
.
master_repo_functional?
||
command
.
is_a?
(
Setup
)
||
command
.
is_a?
(
Repo
::
Add
)
||
ENV
[
'SKIP_SETUP'
]
Setup
.
new
(
CLAide
::
ARGV
.
new
([])).
run
end
command
command
end
end
...
@@ -91,6 +89,16 @@ module Pod
...
@@ -91,6 +89,16 @@ module Pod
end
end
end
end
# Ensure that the master spec repo exists
#
# @return [void]
#
def
ensure_master_spec_repo_exists!
unless
SourcesManager
.
master_repo_functional?
Setup
.
new
(
CLAide
::
ARGV
.
new
([])).
run
end
end
#-------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
include
Config
::
Mixin
include
Config
::
Mixin
...
...
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