GIT $env->branch() don't work

Today this method does not work and I added the ability to update submodules. Just add $env->submodule(true/false)