mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 21:02:38 +02:00
fixbug
This commit is contained in:
parent
37703253a3
commit
2e0a847f63
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class GitRepository:
|
|||
if new_path.exists():
|
||||
logger.info(f"Delete directory {str(new_path)}")
|
||||
shutil.rmtree(new_path)
|
||||
os.rename(src=str(self.workdir), dst=str(new_path)) # self.workdir.rename(new_path)
|
||||
shutil.move(src=str(self.workdir), dst=str(new_path)) # self.workdir.rename(new_path)
|
||||
logger.info(f"Rename directory {str(self.workdir)} to {str(new_path)}")
|
||||
self._repository = Repo(new_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue