From 9da4c426798657a3c266dcd778c3e3c327f7fbdb 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 --- source_control/git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source_control/git.py b/source_control/git.py index c8757023398..56addd883c1 100644 --- a/source_control/git.py +++ b/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"