git: Execute git commands in `dest` directory
Work around for cwd stat problems with run_command and sudo

This fixes issue #6443
Add notes about module.run_command to coding guidelines.
Merge pull request #6446 from patricksmith/fix-git

git: Execute git commands in `dest` directory
Merge branch 'patch-1' of https://github.com/dmkoch/ansible into dmkoch-patch-1
Make sure the cwd exists in run_command before trying to use it
Additional test_git scenarios

Includes coverage for accept_hostkey and additional scm URL formats.
Add credentials.template and support custom INVENTORY

Testers may override the inventory and vars-file using the environment
variables 'INVENTORY' and 'VARS_FILE'.
Various commits to enable no-shell or safe-shell usage, more to come.
Fixes for run_command shell usage in remainder of packaging modules, save portinstall.
Only use cwd in run_command kwargs if the directory exists
Some more run_command updates.
Fix typo in portinstall
Fix missing colons in cpanm
More shell updates
Close parens in portinstall
More shell fixes
Fixup shell handling in monit module.
Still more shell fixes.
Merge pull request #6453 from jlaska/test_git

Additional test scenarios in roles/test_git