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
9242a26c
Commit
9242a26c
authored
Dec 29, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Setup] Remove repo migration code
parent
141b8c18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
setup.rb
lib/cocoapods/command/setup.rb
+0
-24
No files found.
lib/cocoapods/command/setup.rb
View file @
9242a26c
...
...
@@ -34,8 +34,6 @@ module Pod
set_master_repo_url
set_master_repo_branch
update_master_repo
elsif
old_master_repo_dir
.
exist?
migrate_repos
else
add_master_repo
end
...
...
@@ -48,22 +46,6 @@ module Pod
# @!group Setup steps
# Migrates any repos from the old directory structure to the new
# directory structure.
#
# @todo: Remove by 1.0
#
def
migrate_repos
config
.
repos_dir
.
mkpath
Dir
.
foreach
old_master_repo_dir
.
parent
do
|
repo_dir
|
source_repo_dir
=
old_master_repo_dir
.
parent
+
repo_dir
target_repo_dir
=
config
.
repos_dir
+
repo_dir
if
repo_dir
!~
/\.+/
&&
source_repo_dir
!=
config
.
repos_dir
FileUtils
.
mv
source_repo_dir
,
target_repo_dir
end
end
end
# Sets the url of the master repo according to whether it is push.
#
# @return [void]
...
...
@@ -127,12 +109,6 @@ module Pod
def
master_repo_dir
SourcesManager
.
master_repo_dir
end
# @return [Pathname] the directory of the old master repo.
#
def
old_master_repo_dir
Pathname
.
new
(
'~/.cocoapods/master'
).
expand_path
end
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