overcommit 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/overcommit/git_hook.rb +3 -1
- data/lib/overcommit/version.rb +1 -1
- metadata +1 -1
data/lib/overcommit/git_hook.rb
CHANGED
@@ -73,7 +73,9 @@ module Overcommit
|
|
73
73
|
def run_and_filter_check(check)
|
74
74
|
status, output = check.run_check
|
75
75
|
|
76
|
-
|
76
|
+
output = output.to_s
|
77
|
+
|
78
|
+
unless output.empty?
|
77
79
|
check.staged.each do |staged_file|
|
78
80
|
output = staged_file.filter_string(output)
|
79
81
|
end
|
data/lib/overcommit/version.rb
CHANGED