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: Revert to full clone method when needed (#589)
Kilian Lieret3a2f41f49547
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex cb387ded..f1ccf997 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -246,6 +246,7 @@ class SWEEnv(gym.Env):clone_method = keys_config.get("SWE_AGENT_CLONE_METHOD", default="sparse", choices=["sparse", "full"])if len(self.data) > 1 or self.persistent:msg = "Falling back to full cloning method due to multiple instances or persistent container"+ clone_method = "full"self.logger.debug(msg)if clone_method == "full":self.communicate_with_handling(