mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #301 from pre-commit/fix_300
Fix issue #300 by removing GIT_WORK_TREE env variable
This commit is contained in:
commit
1cdbe38b5f
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ from pre_commit.runner import Runner
|
||||||
# to install packages to the wrong place. We don't want anything to deal with
|
# to install packages to the wrong place. We don't want anything to deal with
|
||||||
# pyvenv
|
# pyvenv
|
||||||
os.environ.pop('__PYVENV_LAUNCHER__', None)
|
os.environ.pop('__PYVENV_LAUNCHER__', None)
|
||||||
|
# https://github.com/pre-commit/pre-commit/issues/300
|
||||||
|
# In git 2.6.3 (maybe others), git exports this while running pre-commit hooks
|
||||||
|
os.environ.pop('GIT_WORK_TREE', None)
|
||||||
|
|
||||||
|
|
||||||
def main(argv=None):
|
def main(argv=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue