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
87d9b2fb
Commit
87d9b2fb
authored
Nov 04, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2783 from CocoaPods/remove-git-1.7.5
[Command] Don't check for git >= 1.7.5
parents
8c7e030e
7d17724c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
24 deletions
+3
-24
CHANGELOG.md
CHANGELOG.md
+3
-0
command.rb
lib/cocoapods/command.rb
+0
-14
command_spec.rb
spec/functional/command_spec.rb
+0
-10
No files found.
CHANGELOG.md
View file @
87d9b2fb
...
...
@@ -19,6 +19,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#2768
](
https://github.com/CocoaPods/CocoaPods/issues/2768
)
*
We no longer require git version 1.7.5 or greater.
[
Kyle Fuller
](
https://github.com/kylef
)
## 0.35.0.rc1
...
...
lib/cocoapods/command.rb
View file @
87d9b2fb
...
...
@@ -41,7 +41,6 @@ module Pod
def
self
.
run
(
argv
)
help!
'You cannot run CocoaPods as root.'
if
Process
.
uid
==
0
verify_git_version!
super
(
argv
)
UI
.
print_warnings
...
...
@@ -122,18 +121,5 @@ module Pod
raise
Informative
,
"No `Podfile.lock' found in the project directory, run `pod install'."
end
end
def
self
.
verify_git_version!
begin
git_version
=
`git version`
.
strip
rescue
Errno
::
ENOENT
help!
'CocoaPods requires you to have `git` installed.'
end
git_version
=
Version
.
new
(
git_version
.
split
[
2
])
if
git_version
<
Pod
::
Version
.
new
(
'1.7.5'
)
help!
'CocoaPods requires git version 1.7.5 or newer. Please update git.'
end
end
end
end
spec/functional/command_spec.rb
View file @
87d9b2fb
...
...
@@ -17,15 +17,5 @@ module Pod
Process
.
stubs
(
:uid
).
returns
(
0
)
lambda
{
Pod
::
Command
.
run
([
'--version'
])
}.
should
.
raise
CLAide
::
Help
end
it
"doesn't let you run without git installed"
do
Pod
::
Command
.
expects
(
:`
).
with
(
'git version'
).
raises
(
Errno
::
ENOENT
)
lambda
{
Pod
::
Command
.
run
([
'--version'
])
}.
should
.
raise
CLAide
::
Help
end
it
"doesn't let you run with git version < 1.7.5"
do
Pod
::
Command
.
expects
(
:`
).
with
(
'git version'
).
returns
(
'git version 1.7.4.1 (Apple Git-50)'
)
lambda
{
Pod
::
Command
.
run
([
'--version'
])
}.
should
.
raise
CLAide
::
Help
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