check git remote diff

Change-Id: Ifeb16af7b140d540b8f0ac475c89eaefe9bdc8de
diff --git a/src/com/mirantis/mk/Git.groovy b/src/com/mirantis/mk/Git.groovy
index ccf7ed4..4bb7b05 100644
--- a/src/com/mirantis/mk/Git.groovy
+++ b/src/com/mirantis/mk/Git.groovy
@@ -168,7 +168,7 @@
     sh "git config user.email '${gitEmail}'"
     sh "git config user.name '${gitName}'"
 
-    sh "git remote | grep target || git remote add target ${TARGET_URL}"
+    sh "git remote -v | grep ${TARGET_URL} | grep target || { git remote remove target >/dev/null 2>&1; git remote add target ${TARGET_URL}; }"
     ssh.agentSh "git remote update --prune"
 
     for (i=0; i < branches.size; i++) {