Skip to content

Commit

Permalink
Always set shallow to be True if retry
Browse files Browse the repository at this point in the history
Signed-off-by: Vector Li <[email protected]>
  • Loading branch information
idorax committed Nov 6, 2023
1 parent a3aaf6e commit 9448786
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tmt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4863,9 +4863,8 @@ def git_clone(
# Note that the `url` is changed even if `can_change` is `True` when the function is
# called at the first time, it is not necessary to changed it again when retrying.
# Hence, `can_change` is always set as `False` right here.
shallow = retries > 0
return git_clone(url, destination, common, env,
shallow=shallow,
shallow=True,
can_change=False,
retries=retries - 1,
timeout=timeout)
Expand Down

0 comments on commit 9448786

Please sign in to comment.