[bp-2.11] Update example and description of git:single_branch (#74832)

(cherry picked from commit b63512774b)

Co-authored-by: Daniel Chabrowski <dantezstudio@gmail.com>
This commit is contained in:
Abhijeet Kasurde 2021-06-04 00:26:31 +05:30 committed by GitHub
parent 6987150d40
commit 6f126a8d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ options:
single_branch:
description:
- Clone only the history leading to the tip of the specified I(branch).
- Clone only the history leading to the tip of the specified revision.
type: bool
default: 'no'
version_added: '2.11'
@ -259,8 +259,10 @@ EXAMPLES = '''
- name: Example clone of a single branch
ansible.builtin.git:
repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples
single_branch: yes
branch: master
version: master
- name: Avoid hanging when http(s) password is missing
ansible.builtin.git: