Fix git clone optimization

This commit is contained in:
allegroai 2019-11-15 23:22:05 +02:00
parent 831b36c424
commit 741be2ae42

View File

@ -533,7 +533,8 @@ def clone_repository_cached(session, execution, destination):
else:
print("cloning: {}".format(no_password_url))
rm_tree(cached_repo_path)
vcs.clone(branch=execution.branch)
# We clone the entire repository, not a specific branch
vcs.clone() # branch=execution.branch)
vcs.pull()
vcs.checkout()