throw Exception when trying to clone into directory that exists

This commit is contained in:
riscy 2022-07-31 12:18:04 -07:00
parent 56a7d198de
commit ce80f10bb7

View file

@ -675,7 +675,7 @@ def _clone(repo: str, into: str, branch: str, fetcher: str) -> bool:
if branch:
_note(f"CI workflow detected; using branch '{branch}'", CLR_INFO)
os.makedirs(into, exist_ok=True)
os.makedirs(into)
scm = 'hg' if fetcher == 'hg' else 'git'
if scm == 'git':
options = ['--single-branch']