Commit 2714e56d authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Setup] Don't create pre-commit hook

parent a16ba2de
...@@ -33,7 +33,6 @@ module Pod ...@@ -33,7 +33,6 @@ module Pod
else else
add_master_repo add_master_repo
end end
enable_pre_commit_hooks
end end
access_type = push? ? "push" : "read-only" access_type = push? ? "push" : "read-only"
...@@ -83,21 +82,6 @@ module Pod ...@@ -83,21 +82,6 @@ module Pod
end end
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\nrake lint" }
`chmod +x '#{hook}'`
end
end
#--------------------------------------# #--------------------------------------#
# @!group Private helpers # @!group Private helpers
...@@ -106,7 +90,7 @@ module Pod ...@@ -106,7 +90,7 @@ module Pod
# be enabled. # be enabled.
# #
def url def url
url = (push?) ? read_write_url : read_only_url (push?) ? read_write_url : read_only_url
end end
# @return [String] the read only url of the master repo. # @return [String] the read only url of the master repo.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment