mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-09-24 23:10:40 +08:00
fixbug: gitignore error after project renamed
This commit is contained in:
@@ -204,6 +204,7 @@ class GitRepository:
|
||||
logger.warning(f"Move {str(self.workdir)} to {str(new_path)} error: {e}")
|
||||
logger.info(f"Rename directory {str(self.workdir)} to {str(new_path)}")
|
||||
self._repository = Repo(new_path)
|
||||
self._gitignore_rules = parse_gitignore(full_path=str(new_path / ".gitignore"))
|
||||
|
||||
def get_files(self, relative_path: Path | str, root_relative_path: Path | str = None, filter_ignored=True) -> List:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user