diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-06-12 18:24:30 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-12 22:44:05 -0500 |
commit | 85992a5d4a25712c7367f889e9f3589928449673 (patch) | |
tree | 0726c366c38f70d36b2ad326845612dd3f6fd961 /task/git_hooks.rake | |
parent | bf2ba39a58d4f14551900c65676fe70f3c51e1db (diff) | |
download | bundler-85992a5d4a25712c7367f889e9f3589928449673.tar.gz |
[Rakefile] Run hooks quietly
Diffstat (limited to 'task/git_hooks.rake')
-rw-r--r-- | task/git_hooks.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/task/git_hooks.rake b/task/git_hooks.rake index 9d41370ba0..0b8aab2ff9 100644 --- a/task/git_hooks.rake +++ b/task/git_hooks.rake @@ -10,7 +10,7 @@ set -e .git/hooks/run-ruby bin/rake generate_files SH - chmod 0o755, t.name + chmod 0o755, t.name, :verbose => false end file ".git/hooks/pre-commit" => [__FILE__] do |t| @@ -23,12 +23,12 @@ set -e .git/hooks/run-ruby bin/rspec spec/quality_spec.rb SH - chmod 0o755, t.name + chmod 0o755, t.name, :verbose => false end file ".git/hooks/pre-push" => [__FILE__] do |_t| Dir.chdir(".git/hooks") do - safe_ln "pre-commit", "pre-push" + safe_ln "pre-commit", "pre-push", :verbose => false end end @@ -41,7 +41,7 @@ command -v chruby-exec >/dev/null 2>&1 && [[ -f ~/.ruby-version ]] && ruby="chru ruby $@ SH - chmod 0o755, t.name + chmod 0o755, t.name, :verbose => false end task :git_hooks => Rake::Task.tasks.select {|t| t.name.start_with?(".git/hooks") } |