Skip to content

Commit

Permalink
Fix: Handle spaces in repo names (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret authored Aug 20, 2024
1 parent d641d35 commit 6f3b384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sweagent/environment/swe_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def add_hook(self, hook: EnvHook):
def _repo_name(self) -> str:
"""Name of the local copy of the repository"""
assert self.record is not None
return self.record["repo"].replace("/", "__")
return self.record["repo"].replace("/", "__").replace(" ", "-")

def _copy_repo(self) -> str:
"""Clone/copy repository/codebase in container
Expand Down

0 comments on commit 6f3b384

Please sign in to comment.