set user before commit

It is necessary to set git user/email before commit, not before push.

Change-Id: I790525f2cbb444895e229e58ce07e38413e3f5f3
diff --git a/src/com/mirantis/mk/Git.groovy b/src/com/mirantis/mk/Git.groovy
index 8d24471..1c8b19f 100644
--- a/src/com/mirantis/mk/Git.groovy
+++ b/src/com/mirantis/mk/Git.groovy
@@ -103,6 +103,9 @@
 def commitGitChanges(path, message) {
     def git_cmd
     dir(path) {
+        sh "git config --global user.email 'jenkins@localhost'"
+        sh "git config --global user.name 'jenkins-slave'"
+
         sh(
             script: 'git add -A',
             returnStdout: true
@@ -126,8 +129,6 @@
  */
 def pushGitChanges(path, branch = 'master', remote = 'origin', credentialsId = null) {
     def ssh = new com.mirantis.mk.Ssh()
-    sh "git config --global user.email 'jenkins@root'"
-    sh "git config --global user.name 'jenkins-slave'"
     dir(path) {
         if (credentialsId == null) {
             sh script: "git push ${remote} ${branch}"