mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 19:06:23 +02:00
feat: merge geekan:cli-etc
This commit is contained in:
parent
09b6d2df83
commit
6fa3deef00
2 changed files with 13 additions and 16 deletions
|
|
@ -59,6 +59,7 @@ class GitRepository:
|
|||
:param local_path: The local path to the Git repository.
|
||||
:param auto_init: If True, automatically initializes a new Git repository if the provided path is not a Git repository.
|
||||
"""
|
||||
local_path = Path(local_path)
|
||||
if self.is_git_dir(local_path):
|
||||
self._repository = Repo(local_path)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue