mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
Merge pull request #1700 from pre-commit/rbenv_default_more
fix for rbenv used outside of pre-commit and language_version: default
This commit is contained in:
commit
84195868fc
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,6 @@ def get_env_patch(
|
||||||
else: # pragma: win32 no cover
|
else: # pragma: win32 no cover
|
||||||
patches += (
|
patches += (
|
||||||
('RBENV_ROOT', venv),
|
('RBENV_ROOT', venv),
|
||||||
('RBENV_VERSION', language_version),
|
|
||||||
(
|
(
|
||||||
'PATH', (
|
'PATH', (
|
||||||
os.path.join(venv, 'gems', 'bin'), os.pathsep,
|
os.path.join(venv, 'gems', 'bin'), os.pathsep,
|
||||||
|
|
@ -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
|
return patches
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue