No repo map if no repo

This commit is contained in:
Paul Gauthier 2023-06-23 16:10:48 -07:00
parent 6f421ef087
commit ae9ded4eaf

View file

@ -139,7 +139,7 @@ class Coder:
self.io.tool_output("Git repo: none")
self.find_common_root()
if main_model.use_repo_map:
if main_model.use_repo_map and self.repo:
rm_io = io if self.verbose else None
self.repo_map = RepoMap(
map_tokens,