Created
November 3, 2011 10:37
Revisions
-
Peter Moran revised this gist
Nov 3, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ message_file = ARGV[0] message = File.read(message_file) $regex = /^\[(Extranet|API|Consumer)\]/ if !$regex.match(message) puts "COMMIT FAILED: your message doesn't start with [Extranet], [API] or [Consumer]" -
Peter Moran revised this gist
Nov 3, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,6 @@ message = File.read(message_file) $regex = /\[(Extranet|API|Consumer)\]/ if !$regex.match(message) puts "COMMIT FAILED: your message doesn't start with [Extranet], [API] or [Consumer]" exit 1 end -
Peter Moran created this gist
Nov 3, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/env ruby message_file = ARGV[0] message = File.read(message_file) $regex = /\[(Extranet|API|Consumer)\]/ if !$regex.match(message) puts "COMMIT FAILED: your message doesn't contain [Extranet], [API] or [Consumer]" exit 1 end