SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fix(repo): Ensure absolute path for copy repo (#1116)
Kilian Liereteb17253e1442
diff --git a/sweagent/environment/repo.py b/sweagent/environment/repo.pyindex 0abf4438..b0de0b4c 100644--- a/sweagent/environment/repo.py+++ b/sweagent/environment/repo.py@@ -160,8 +160,8 @@ class GithubRepoConfig(BaseModel):Command(command=" && ".join((- f"mkdir {self.repo_name}",- f"cd {self.repo_name}",+ f"mkdir /{self.repo_name}",+ f"cd /{self.repo_name}","git init",f"git remote add origin {url}",f"git fetch --depth 1 origin {base_commit}",