From 884facb516fc5f64d3708fd2dbc15faf4b7f817b Mon Sep 17 00:00:00 2001 From: brb Date: Wed, 5 Jul 2023 20:44:20 +0200 Subject: [PATCH] fixed bug when extracting repo name from url --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 92bc509..c02dcfb 100644 --- a/utils.py +++ b/utils.py @@ -3,7 +3,7 @@ from pathlib import Path def clone_repository(repo_url: AnyHttpUrl) -> Path: print(f'cloning into {repo_url}') - repo_name = repo_url.split('/')[-1].strip('.git') + repo_name = repo_url.split('/')[-1].strip('\.git') dst_dir = Path(__file__).parent / repo_name dst_dir.mkdir() return dst_dir \ No newline at end of file