1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Update the comment docs on pre-commit-hook.rb

[SeeRM #8779]
This commit is contained in:
Tod Beardsley 2014-04-03 15:26:25 -05:00
parent 70c0a19bbe
commit e1d819b8b9
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193

View File

@ -1,22 +1,20 @@
#!/usr/bin/env ruby
# Check that modules actually pass msftidy checks first.
# To install this script, make this your pre-commit hook your local
# metasploit-framework clone. For example, if you have checked out
# the Metasploit Framework to:
# Check that modules actually pass msftidy checks before committing
# or after merging.
#
# /home/mcfakepants/git/metasploit-framework
# Simply symlink this script to your local .git/hooks/pre-commit script
# and your .git/hooks/post-merge scripts. Note the lack of a trailing
# .rb
#
# then you will copy this script to:
# If you are in the top-level dir, the symlink commands would be:
#
# /home/mcfakepants/git/metasploit-framework/.git/hooks/pre-commit
# ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-commit
# ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
#
# You must mark it executable (chmod +x), and do not name it
# pre-commit.rb (just pre-commit)
#
# If you want to keep up on changes with this hook, just:
#
# ln -sf <this file> <path to commit hook>
# That way, you will track changes to this script when it updates
# (rarely). If you'd prefer to copy it directly, that's okay, too (mark
# it +x and don't name it filename.rb, just filename).
def merge_error_message
msg = []