Commit 75a6db15 authored by Eloy Duran's avatar Eloy Duran

Install git pre-commit hook which runs `pod spec lint' against modified specs in…

Install git pre-commit hook which runs `pod spec lint' against modified specs in the master spec repo. Closes #74.
parent 6db98289
......@@ -41,6 +41,9 @@ module Pod
else
add_master_repo_command.run
end
hook = config.repos_dir + 'master/.git/hooks/pre-commit'
hook.open('w') { |f| f << "#!/bin/sh\nrake lint" }
`chmod +x '#{hook}'`
end
end
end
......
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