From ccddeb8cdc0a7dbf2c66bf31225acc7648724de2 Mon Sep 17 00:00:00 2001 From: Robin Roth Date: Sat, 27 Aug 2016 09:51:18 -0500 Subject: [PATCH] Clarify that refspec is needed to checkout a git hash (#4564) fixes #1531 --- lib/ansible/modules/source_control/git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/source_control/git.py b/lib/ansible/modules/source_control/git.py index c8757023398..56addd883c1 100644 --- a/lib/ansible/modules/source_control/git.py +++ b/lib/ansible/modules/source_control/git.py @@ -46,8 +46,9 @@ options: default: "HEAD" description: - What version of the repository to check out. This can be the - full 40-character I(SHA-1) hash, the literal string C(HEAD), a - branch name, or a tag name. + the literal string C(HEAD), a branch name, a tag name. + It can also be a I(SHA-1) hash, in which case C(refspec) needs + to be specified if the given revision is not already available. accept_hostkey: required: false default: "no"