Revert "Use subproccess instead subshell for git calls"

This reverts commit f479a2095748552fbf4be9e9654a2ca665564510.