当我尝试使用dulwich拉取一个文件夹时,我得到了这个错误:
AttributeError: 'NoneType' object has no attribute 'startswith'我在windows或linux上也遇到了同样的错误。克隆功能运行完美
下面是我的代码:
from dulwich import porcelain
import ssl
depot_maj = "https://github.com/jelmer/dulwich.git"
#Disable SSL verification for private server
ssl._create_default_https_context = ssl._create_unverified_context
#porcelain.clone(depot_maj, "test")
porcelain.pull("test", depot_maj)当我使用以下命令更改pull函数时:
porcelain.pull("test", depot_maj, "refs/heads/master")我得到了:
TypeError: startswith first arg must be str or a tuple of str, not bytes我哪里做错了?
编辑: Im正在运行Python 3.5
发布于 2017-02-08 08:40:31
FWIW此问题已在较新版本的Dulwich中修复。
https://stackoverflow.com/questions/39250285
复制相似问题