Created
January 11, 2011 23:00
-
-
Save trshafer/775343 to your computer and use it in GitHub Desktop.
precommit hook for checking reminders.txt content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
reminder_location = 'ignored/reminders.txt' | |
file_location = File.join( File.dirname(__FILE__), '..', '..', reminder_location) | |
more_work_needed = IO.readlines(file_location).join('').strip != '' | |
exit 1 if more_work_needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goes in .git/hooks
don't forget to:
chmod u+x .git/hooks/pre-commit