Skip to content

Commit e1efc6b

Browse files
authored
fetch commit under test also in case of full_history
1 parent da0eaba commit e1efc6b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/job/job.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ def clone_repo(self, commit, clone_url, branch, ref, full_history, sub_path=None
190190
c.execute(['git', 'config', 'remote.origin.url', clone_url], cwd=mount_repo_dir, show=True)
191191
c.execute(['git', 'config', 'remote.origin.fetch', '+refs/heads/*:refs/remotes/origin/*'],
192192
cwd=mount_repo_dir, show=True)
193-
194-
if not full_history:
195-
c.execute(['git', 'fetch', 'origin', commit], cwd=mount_repo_dir, show=True, retry=True)
193+
c.execute(['git', 'fetch', 'origin', commit], cwd=mount_repo_dir, show=True, retry=True)
196194

197195
cmd = ['git', 'checkout', '-qf', commit]
198196

0 commit comments

Comments
 (0)