mirror of https://github.com/ansible/ansible.git
Resolve incompatability between depth and version
Git is unable to checkout the specified `version` when the repository is cloned with a reduced history (`depth`). However, if the repository is already cloned, subsequent git module calls will update the repository (default update=True), then properly checkout the specified `version`. To allow the initial call to properly clone the specified `version`, at the specified `depth`, this patch adds the `--branch` parameter when cloning the repository.reviewable/pr18780/r1
parent
bd9d3d4fdd
commit
cf563c6838
Loading…
Reference in New Issue