π OpenHands: AI-Driven Development
fix(runtime): use async in git clone (#9334)
Denys Vitali5b5a9718c278
diff --git a/openhands/runtime/base.py b/openhands/runtime/base.pyindex af499f3d2d..41ff611bb2 100644--- a/openhands/runtime/base.py+++ b/openhands/runtime/base.py@@ -386,7 +386,7 @@ class Runtime(FileEditRuntimeMixin):action = CmdRunAction(command=f'git init && git config --global --add safe.directory {self.workspace_root}')- self.run_action(action)+ await call_sync_from_async(self.run_action, action)else:logger.info('In workspace mount mode, not initializing a new git repository.'@@ -424,14 +424,14 @@ class Runtime(FileEditRuntimeMixin):)clone_action = CmdRunAction(command=clone_command)- self.run_action(clone_action)+ await call_sync_from_async(self.run_action, clone_action)cd_checkout_action = CmdRunAction(command=f'cd {dir_name} && {checkout_command}')action = cd_checkout_actionself.log('info', f'Cloning repo: {selected_repository}')- self.run_action(action)+ await call_sync_from_async(self.run_action, action)return dir_namedef maybe_run_setup_script(self):