From 6f126a8d080e604a2094827468d0aa6d10d0c4a2 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 4 Jun 2021 00:26:31 +0530 Subject: [PATCH] [bp-2.11] Update example and description of git:single_branch (#74832) (cherry picked from commit b63512774b7df8056fe34138b97115f1663d88d4) Co-authored-by: Daniel Chabrowski --- lib/ansible/modules/git.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/git.py b/lib/ansible/modules/git.py index d268257d3c8..96810086bdc 100644 --- a/lib/ansible/modules/git.py +++ b/lib/ansible/modules/git.py @@ -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: