lib/overcommit/hook/pre_push/protected_branches.rb in overcommit-0.38.0 vs lib/overcommit/hook/pre_push/protected_branches.rb in overcommit-0.39.0

- old
+ new

@@ -19,9 +19,10 @@ end end def protected?(remote_ref) ref_name = remote_ref[%r{refs/heads/(.*)}, 1] + return false if ref_name.nil? protected_branch_patterns.any? do |pattern| File.fnmatch(pattern, ref_name) end end