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
90174caa
Commit
90174caa
authored
Sep 18, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Repo] Use raising bang variant for git operations.
parent
fe403b85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CHANGELOG.md
CHANGELOG.md
+2
-0
repo.rb
lib/cocoapods/command/repo.rb
+3
-3
No files found.
CHANGELOG.md
View file @
90174caa
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
[
#448
](
https://github.com/CocoaPods/CocoaPods/issues/448
)
[
#448
](
https://github.com/CocoaPods/CocoaPods/issues/448
)
-
Added support for extracting
`.tar.bz2`
files
-
Added support for extracting
`.tar.bz2`
files
[
#522
](
https://github.com/CocoaPods/CocoaPods/issues/522
)
[
#522
](
https://github.com/CocoaPods/CocoaPods/issues/522
)
-
Improved feedback for errors of repo subcommand.
[
#505
](
https://github.com/CocoaPods/CocoaPods/issues/505
)
###### Bug fixes
###### Bug fixes
-
In certain conditions pod setup would execute twice.
-
In certain conditions pod setup would execute twice.
...
...
lib/cocoapods/command/repo.rb
View file @
90174caa
...
@@ -58,8 +58,8 @@ module Pod
...
@@ -58,8 +58,8 @@ module Pod
def
add
def
add
print_subtitle
"Cloning spec repo `
#{
@name
}
' from `
#{
@url
}
'
#{
" (branch `
#{
@branch
}
')"
if
@branch
}
"
print_subtitle
"Cloning spec repo `
#{
@name
}
' from `
#{
@url
}
'
#{
" (branch `
#{
@branch
}
')"
if
@branch
}
"
config
.
repos_dir
.
mkpath
config
.
repos_dir
.
mkpath
Dir
.
chdir
(
config
.
repos_dir
)
{
git
(
"clone '
#{
@url
}
'
#{
@name
}
"
)
}
Dir
.
chdir
(
config
.
repos_dir
)
{
git
!
(
"clone '
#{
@url
}
'
#{
@name
}
"
)
}
Dir
.
chdir
(
dir
)
{
git
(
"checkout
#{
@branch
}
"
)
}
if
@branch
Dir
.
chdir
(
dir
)
{
git
!
(
"checkout
#{
@branch
}
"
)
}
if
@branch
check_versions
(
dir
)
check_versions
(
dir
)
end
end
...
@@ -70,7 +70,7 @@ module Pod
...
@@ -70,7 +70,7 @@ module Pod
Dir
.
chdir
(
dir
)
do
Dir
.
chdir
(
dir
)
do
`git rev-parse >/dev/null 2>&1`
`git rev-parse >/dev/null 2>&1`
if
$?
.
exitstatus
.
zero?
if
$?
.
exitstatus
.
zero?
git
(
"pull"
)
git
!
(
"pull"
)
else
else
puts
(
" Not a git repository"
)
if
config
.
verbose?
puts
(
" Not a git repository"
)
if
config
.
verbose?
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