diff --git a/lib/ansible/modules/source_control/git.py b/lib/ansible/modules/source_control/git.py index 828017ecd64..3bccf877cd6 100644 --- a/lib/ansible/modules/source_control/git.py +++ b/lib/ansible/modules/source_control/git.py @@ -706,6 +706,7 @@ def main(): if not dest and allow_clone: module.fail_json(msg="the destination directory must be specified unless clone=no") elif dest: + dest = os.path.abspath(dest) if bare: gitconfig = os.path.join(dest, 'config') else: