fixbug: vscode, FileNotFoundError: [Errno 2] No such file or directory: '.vs/MetaGPT/v16/.suo'

This commit is contained in:
莘权 马 2024-04-17 22:07:52 +08:00
parent 933d6c12d1
commit b892a9b43b

View file

@ -78,7 +78,7 @@ class GitRepository:
self._repository = Repo.init(path=Path(local_path))
gitignore_filename = Path(local_path) / ".gitignore"
ignores = ["__pycache__", "*.pyc"]
ignores = ["__pycache__", "*.pyc", ".vs"]
with open(str(gitignore_filename), mode="w") as writer:
writer.write("\n".join(ignores))
self._repository.index.add([".gitignore"])