From 741be2ae42dccafc082deca775d38dfdaa654f68 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Fri, 15 Nov 2019 23:22:05 +0200 Subject: [PATCH] Fix git clone optimization --- trains_agent/helper/repo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trains_agent/helper/repo.py b/trains_agent/helper/repo.py index 1604380..397ccb4 100644 --- a/trains_agent/helper/repo.py +++ b/trains_agent/helper/repo.py @@ -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()