improvements to submodule handling, only attempt commit/push if repo is writeable, add some logging.
improvements to submodule handling, only attempt commit/push if repo is writeable, add some logging.

thewoolleyman/geminstaller,thewoolleyman/geminstaller,thewoolleyman/geminstaller