Skip to content

Commit 24a851f

Browse files
committed
Quiet LineEndings spec
1 parent c020a02 commit 24a851f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/overcommit/hook/pre_commit/line_endings_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
around do |example|
2525
repo do
2626
File.open(staged_file, 'w') { |f| f.write(contents) }
27-
`git add #{staged_file}`
27+
`git add #{staged_file} > #{File::NULL} 2>&1`
2828
example.run
2929
end
3030
end

0 commit comments

Comments
 (0)