added test printing of var
This commit is contained in:
+2
-1
@@ -22,10 +22,11 @@ def clone_repository(
|
||||
repo_url: AnyHttpUrl,
|
||||
repo_dir: str = REPO_DIR
|
||||
) -> Path:
|
||||
print('repo_url: ', repo_url)
|
||||
print('repo_dir: ', repo_dir)
|
||||
# extract repo name
|
||||
repo_name = repo_url.split('/')[-1].replace('.git', '')
|
||||
dst_dir = Path(repo_dir) / repo_name
|
||||
logging.warning(dst_dir)
|
||||
# prepare repo download dir
|
||||
if dst_dir.exists():
|
||||
shutil.rmtree(dst_dir)
|
||||
|
||||
Reference in New Issue
Block a user