Skip to content

Commit

Permalink
Add a caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Blackburn committed Jan 26, 2015
1 parent 7bad733 commit 1fe7a6e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Library/Formula/git-hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ 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
end

test do
output = `cd $(brew --prefix); git hooks`.strip
assert_match /Listing User, Project, and Global hooks/, output
Expand Down

0 comments on commit 1fe7a6e

Please sign in to comment.