added test printing of var
This commit is contained in:
+2
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user