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
2714e56d
Commit
2714e56d
authored
Mar 19, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Setup] Don't create pre-commit hook
parent
a16ba2de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
setup.rb
lib/cocoapods/command/setup.rb
+1
-17
No files found.
lib/cocoapods/command/setup.rb
View file @
2714e56d
...
...
@@ -33,7 +33,6 @@ module Pod
else
add_master_repo
end
enable_pre_commit_hooks
end
access_type
=
push?
?
"push"
:
"read-only"
...
...
@@ -83,21 +82,6 @@ module Pod
end
end
# Enables the pre-commit hook of the master repo.
#
# @note The hook is enabled in this way because the specs run with the
# master repo as a submodule.
#
# @return [void]
#
def
enable_pre_commit_hooks
if
(
master_repo_dir
+
'.git/hooks'
).
exist?
hook
=
master_repo_dir
+
'.git/hooks/pre-commit'
hook
.
open
(
'w'
)
{
|
f
|
f
<<
"#!/bin/sh
\n
rake lint"
}
`chmod +x '
#{
hook
}
'`
end
end
#--------------------------------------#
# @!group Private helpers
...
...
@@ -106,7 +90,7 @@ module Pod
# be enabled.
#
def
url
url
=
(
push?
)
?
read_write_url
:
read_only_url
(
push?
)
?
read_write_url
:
read_only_url
end
# @return [String] the read only url of the master repo.
...
...
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