Merge "don't clone a repo if it already exists"
This commit is contained in:
commit
c96599b87e
@ -56,6 +56,9 @@ def commit_exists(repo, ref):
|
|||||||
|
|
||||||
def clone_repo(workdir, repo):
|
def clone_repo(workdir, repo):
|
||||||
"Check out the code."
|
"Check out the code."
|
||||||
|
dest = os.path.join(workdir, repo)
|
||||||
|
if os.path.exists(dest):
|
||||||
|
return
|
||||||
cmd = [
|
cmd = [
|
||||||
'zuul-cloner',
|
'zuul-cloner',
|
||||||
'--workspace', workdir,
|
'--workspace', workdir,
|
||||||
|
Loading…
Reference in New Issue
Block a user