Python3 pip install git-pre-push-hook - PullRequest
       36

Python3 pip install git-pre-push-hook

0 голосов
/ 26 октября 2018

Я пытался установить модуль git-pre-push-hook с помощью:

pip3 install git-pre-push-hook
mkdir test 
cd test 
git init 
touch README.md 
install-git-pre-push-hook

Но эта ошибка выдается после использования команды install-git-pre-push-hook Есть идеи, почему это происходит?

Traceback (most recent call last):
  File "/home/tim/.local/bin/install-git-pre-push-hook", line 11, in <module>
    sys.exit(main())
  File "/home/tim/.local/lib/python3.6/site-packages/git_pre_push_hook/install.py", line 18, in main
    os.path.abspath(git_dir.strip()), 'hooks', 'pre-push'
  File "/usr/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.6/genericpath.py", line 151, in _check_arg_types
    raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
...