From e1efc6b6fff86fa4c737d43f21b6f80f6cce994b Mon Sep 17 00:00:00 2001 From: gnod <37585964+epDHowwD@users.noreply.github.com> Date: Fri, 12 Jul 2019 14:46:14 +0200 Subject: [PATCH] fetch commit under test also in case of full_history --- src/job/job.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/job/job.py b/src/job/job.py index 08c37695c..3a56e7c9a 100755 --- a/src/job/job.py +++ b/src/job/job.py @@ -190,9 +190,7 @@ def clone_repo(self, commit, clone_url, branch, ref, full_history, sub_path=None c.execute(['git', 'config', 'remote.origin.url', clone_url], cwd=mount_repo_dir, show=True) c.execute(['git', 'config', 'remote.origin.fetch', '+refs/heads/*:refs/remotes/origin/*'], cwd=mount_repo_dir, show=True) - - if not full_history: - c.execute(['git', 'fetch', 'origin', commit], cwd=mount_repo_dir, show=True, retry=True) + c.execute(['git', 'fetch', 'origin', commit], cwd=mount_repo_dir, show=True, retry=True) cmd = ['git', 'checkout', '-qf', commit]