Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e2b9dc

Browse files
authored
Merge pull request #1603 from pre-commit/no_format_executable
Fix ruby hooks when --format-executable is in gemrc
2 parents 801a313 + 13eed4a commit 3e2b9dc

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
@@ -134,7 +134,8 @@ def install_environment(
134134
helpers.run_setup_cmd(
135135
prefix,
136136
(
137-
'gem', 'install', '--no-document',
137+
'gem', 'install',
138+
'--no-document', '--no-format-executable',
138139
*prefix.star('.gem'), *additional_dependencies,
139140
),
140141
)

0 commit comments

Comments
 (0)