File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ def clone_repo(
274
274
'github_token and selected_repository must be provided to clone a repository'
275
275
)
276
276
url = f'https://{ github_token .get_secret_value ()} @github.com/{ selected_repository } .git'
277
- dir_name = selected_repository .split ('/' )[1 ]
277
+ dir_name = selected_repository .split ('/' )[- 1 ]
278
278
279
279
# Generate a random branch name to avoid conflicts
280
280
random_str = '' .join (
@@ -313,7 +313,7 @@ def get_microagents_from_selected_repo(
313
313
microagents_dir = workspace_root / '.openhands' / 'microagents'
314
314
repo_root = None
315
315
if selected_repository :
316
- repo_root = workspace_root / selected_repository .split ('/' )[1 ]
316
+ repo_root = workspace_root / selected_repository .split ('/' )[- 1 ]
317
317
microagents_dir = repo_root / '.openhands' / 'microagents'
318
318
self .log (
319
319
'info' ,
You can’t perform that action at this time.
0 commit comments