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]