Skip to content

Commit

Permalink
Merge pull request Homebrew#1 from nathanhruby/feature/add_git_hooks
Browse files Browse the repository at this point in the history
fixup review notes
  • Loading branch information
midwire committed Mar 26, 2015
2 parents 1fe7a6e + 53b508e commit 51d4bc5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Library/Formula/git-hooks.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
class GitHooks < Formula
homepage "https://github.com/icefox/git-hooks"
url "https://github.com/icefox/git-hooks/archive/1.00.0.tar.gz"
version "1.00.0"
sha1 "60b6048b8442237914f6174113facb922a9a3cdd"

def install
bin.install "git-hooks"
end

def caveats
<<-EOS.undent
Run 'git hooks --install' Inside a git project to change that projects
git hooks to use git-hooks hooks. 'git hooks --uninstall' can be run at
any time to go back to the old hooks that were installed before
(typically the default which does nothing).
Run 'git hooks --installglobal' to force any new git repository or any
git repository you clone to have a reminders to install git hooks. (It
can't be on by default for security reasons of course)
EOS
(etc/"git-hooks").install "contrib"
end

test do
Expand Down

0 comments on commit 51d4bc5

Please sign in to comment.