Injection of the git.CommandFactory abstraction into the dependent services
As we need to get rid of config.Config
usage we introduced git.CommandFactory
abstraction that know how to create git
commands and doesn't depend on the global var.
This change replaces usages of the git.NewCommandXXX
in a couple of packages. The other packages would be covered in a follow up MRs.
Part of: #2699 (closed)