我尝试使用以下命令安装模块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