added test printing of var

This commit is contained in:
brb
2023-07-13 12:35:11 +02:00
parent 320efedd50
commit b4f1eab752
+2 -1
View File
@@ -22,10 +22,11 @@ def clone_repository(
repo_url: AnyHttpUrl, repo_url: AnyHttpUrl,
repo_dir: str = REPO_DIR repo_dir: str = REPO_DIR
) -> Path: ) -> Path:
print('repo_url: ', repo_url)
print('repo_dir: ', repo_dir)
# extract repo name # extract repo name
repo_name = repo_url.split('/')[-1].replace('.git', '') repo_name = repo_url.split('/')[-1].replace('.git', '')
dst_dir = Path(repo_dir) / repo_name dst_dir = Path(repo_dir) / repo_name
logging.warning(dst_dir)
# prepare repo download dir # prepare repo download dir
if dst_dir.exists(): if dst_dir.exists():
shutil.rmtree(dst_dir) shutil.rmtree(dst_dir)