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
4d68cc89
Commit
4d68cc89
authored
May 03, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2104 from CocoaPods/git-ff-only
[Sources] Use `git pull` with the `--ff-only` flag
parents
1fcac040
ae26de54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
CHANGELOG.md
CHANGELOG.md
+4
-0
sources_manager.rb
lib/cocoapods/sources_manager.rb
+1
-1
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+3
-10
No files found.
CHANGELOG.md
View file @
4d68cc89
...
...
@@ -54,6 +54,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Samuel E. Giddins
](
https://github.com/segiddins
)
[
#2003
](
https://github.com/CocoaPods/CocoaPods/issues/2003
)
*
Fixes an issue where
`pod repo update`
may start an un-committed merge.
[
Kyle Fuller
][
kylef
]
[
#2024
](
https://github.com/CocoaPods/CocoaPods/issues/2024
)
## 0.32.1
##### Bug Fixes
...
...
lib/cocoapods/sources_manager.rb
View file @
4d68cc89
...
...
@@ -153,7 +153,7 @@ module Pod
UI
.
section
"Updating spec repo `
#{
source
.
name
}
`"
do
Dir
.
chdir
(
source
.
data_provider
.
repo
)
do
begin
output
=
git!
(
"pull --
no-rebase --no-commit
"
)
output
=
git!
(
"pull --
ff-only
"
)
UI
.
puts
output
if
show_output
&&
!
config
.
verbose?
rescue
Informative
=>
e
raise
Informative
,
'An error occurred while performing '
\
...
...
spec/unit/sources_manager_spec.rb
View file @
4d68cc89
...
...
@@ -116,20 +116,13 @@ module Pod
set_up_test_repo_for_update
SourcesManager
.
update
(
test_repo_path
.
basename
.
to_s
,
true
)
UI
.
output
.
should
.
match
/
Already up-to-
date/
UI
.
output
.
should
.
match
/
is up to
date/
end
it
"
is robust against user settings for git repos
"
do
it
"
uses the only fast forward git option
"
do
set_up_test_repo_for_update
SourcesManager
.
expects
(
:git!
).
with
()
{
|
options
|
options
.
should
.
match
/--no-rebase/
}
SourcesManager
.
update
(
test_repo_path
.
basename
.
to_s
,
true
)
end
it
"doesn't allow merge commits"
do
set_up_test_repo_for_update
SourcesManager
.
expects
(
:git!
).
with
()
{
|
options
|
options
.
should
.
match
/--no-commit/
}
SourcesManager
.
expects
(
:git!
).
with
()
{
|
options
|
options
.
should
.
match
/--ff-only/
}
SourcesManager
.
update
(
test_repo_path
.
basename
.
to_s
,
true
)
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