saltstack/salt — pull request #2432 by ffa (2012-11-03 07:46:01+00:00)
Title: bug fixes for conformity because cult code is good code

* don't overwrite or delete when the force option is not true

* when the user `runas` doesn't have permission to create a directory in the
parent directory of `target` or `name`, the directory may be created in
preparation of git. So, don't remove the empty directory before cloning.

* the force option still removes the directory even if it is empty

* ensure submodules are initiated recursively everywhere for consistency

* catch all module calls for consistency

* tests to test