feat: merge geekan:cli-etc

This commit is contained in:
莘权 马 2023-11-29 16:22:05 +08:00
parent eff1cb7dc1
commit 7b44fccf8d
5 changed files with 26 additions and 92 deletions

View file

@ -16,7 +16,7 @@ from typing import Dict
from git.repo import Repo
from git.repo.fun import is_git_dir
from metagpt.const import WORKSPACE_ROOT
from metagpt.const import DEFAULT_WORKSPACE_ROOT
from metagpt.logs import logger
from metagpt.utils.dependency_file import DependencyFile
from metagpt.utils.file_repository import FileRepository
@ -201,7 +201,7 @@ class GitRepository:
if __name__ == "__main__":
path = WORKSPACE_ROOT / "git"
path = DEFAULT_WORKSPACE_ROOT / "git"
path.mkdir(exist_ok=True, parents=True)
repo = GitRepository()