Skip to content

Commit

Permalink
Merge pull request #1700 from pre-commit/rbenv_default_more
Browse files Browse the repository at this point in the history
fix for rbenv used outside of pre-commit and language_version: default
  • Loading branch information
asottile committed Nov 20, 2020
2 parents e5a5ae8 + a3e3b3d commit 8419586
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pre_commit/languages/ruby.py
Expand Up @@ -52,7 +52,6 @@ def get_env_patch(
else: # pragma: win32 no cover
patches += (
('RBENV_ROOT', venv),
('RBENV_VERSION', language_version),
(
'PATH', (
os.path.join(venv, 'gems', 'bin'), os.pathsep,
Expand All @@ -61,6 +60,9 @@ def get_env_patch(
),
),
)
if language_version not in {'system', 'default'}: # pragma: win32 no cover
patches += (('RBENV_VERSION', language_version),)

return patches


Expand Down

0 comments on commit 8419586

Please sign in to comment.