fix: 更新功能函数调用错误

This commit is contained in:
Rock Chin
2023-01-01 21:01:09 +08:00
parent 88cb31c06e
commit 4680fe1a93

View File

@@ -103,7 +103,7 @@ if __name__ == '__main__':
elif len(sys.argv) > 1 and sys.argv[1] == 'update': elif len(sys.argv) > 1 and sys.argv[1] == 'update':
try: try:
from dulwich import porcelain from dulwich import porcelain
repo = porcelain.open('.') repo = porcelain.open_repo('.')
porcelain.pull(repo) porcelain.pull(repo)
except ModuleNotFoundError: except ModuleNotFoundError:
print("dulwich模块未安装,请查看 https://github.com/RockChinQ/QChatGPT/issues/77") print("dulwich模块未安装,请查看 https://github.com/RockChinQ/QChatGPT/issues/77")