Skip to content

Commit b0791a2

Browse files
committed
Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin
1 parent a578afb commit b0791a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pre_commit/languages/ruby.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def install_environment(repo_cmd_runner, version='default'):
8888
if version != 'default':
8989
_install_ruby(ruby_env, version)
9090
ruby_env.run(
91-
'cd {prefix} && gem build *.gemspec && gem install *.gem',
91+
'cd {prefix} && gem build *.gemspec'
92+
' && gem install --no-document *.gem',
9293
)
9394

9495

0 commit comments

Comments
 (0)