Since we know which python we're running as when pre-commit install is run (sys.executable), let's put that into .git/hooks/pre-commit and try that python first.
This will involve bumping the magic number in the resource file, and probably updating the logic to check for the same sys.executable existing inside that file.
Since we know which python we're running as when
pre-commit installis run (sys.executable), let's put that into.git/hooks/pre-commitand try that python first.This will involve bumping the magic number in the resource file, and probably updating the logic to check for the same sys.executable existing inside that file.