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
821ba69f
Commit
821ba69f
authored
May 29, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Setup] Checkout the 0.6 branch of the master repo.
parent
dcd85e72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
setup.rb
lib/cocoapods/command/setup.rb
+15
-7
No files found.
lib/cocoapods/command/setup.rb
View file @
821ba69f
...
@@ -70,12 +70,19 @@ module Pod
...
@@ -70,12 +70,19 @@ module Pod
end
end
end
end
def
add_master_repo
_command
def
add_master_repo
@command
||=
Repo
.
new
(
ARGV
.
new
([
'add'
,
'master'
,
url
]))
@command
||=
Repo
.
new
(
ARGV
.
new
([
'add'
,
'master'
,
url
,
'0.6'
])).
run
end
end
def
update_master_repo_command
def
update_master_repo
Repo
.
new
(
ARGV
.
new
([
'update'
,
'master'
]))
Repo
.
new
(
ARGV
.
new
([
'update'
,
'master'
])).
run
end
#TODO: remove after rc
def
set_master_repo_branch
Dir
.
chdir
(
dir
)
do
git
(
"checkout 0.6"
)
end
end
end
def
run_if_needed
def
run_if_needed
...
@@ -85,9 +92,10 @@ module Pod
...
@@ -85,9 +92,10 @@ module Pod
def
run
def
run
if
dir
.
exist?
if
dir
.
exist?
set_master_repo_url
set_master_repo_url
update_master_repo_command
.
run
set_master_repo_branch
update_master_repo
else
else
add_master_repo
_command
.
run
add_master_repo
end
end
# Mainly so the specs run with submodule repos
# Mainly so the specs run with submodule repos
if
(
dir
+
'.git/hooks'
).
exist?
if
(
dir
+
'.git/hooks'
).
exist?
...
@@ -95,7 +103,7 @@ module Pod
...
@@ -95,7 +103,7 @@ module Pod
hook
.
open
(
'w'
)
{
|
f
|
f
<<
"#!/bin/sh
\n
rake lint"
}
hook
.
open
(
'w'
)
{
|
f
|
f
<<
"#!/bin/sh
\n
rake lint"
}
`chmod +x '
#{
hook
}
'`
`chmod +x '
#{
hook
}
'`
end
end
puts
"Setup completed (
#{
push?
?
"push"
:
"read-only"
}
access)"
unless
config
.
silent
puts
"
\n
Setup completed (
#{
push?
?
"push"
:
"read-only"
}
access)"
unless
config
.
silent
end
end
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