Only check master, because bad things happen otherwise.
authorWard Vandewege <ward@jhvc.com>
Wed, 28 May 2014 16:01:16 +0000 (12:01 -0400)
committerWard Vandewege <ward@jhvc.com>
Wed, 28 May 2014 16:01:16 +0000 (12:01 -0400)
git/hooks/coding-standards.sh

index 610abe82a40bd91f61a5ce7a32277b8a44f21694..de8c49f599c11724359d89e0066709be5f3403aa 100755 (executable)
@@ -13,9 +13,8 @@ $oldrev  = ARGV[1]
 $newrev  = ARGV[2]
 $user    = ENV['USER']
 
-# Only enforce policy on the master branch -- on second thought, do it on all
-# branches so that people don't get surprised at merge-to-master time.  
-#exit 0 if $refname != 'refs/heads/master'
+# Only enforce policy on the master branch
+exit 0 if $refname != 'refs/heads/master'
 
 puts "Enforcing Policies... \n(#{$refname}) (#{$oldrev[0,6]}) (#{$newrev[0,6]})"