Only add if file does not exist already 29/9229/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 24 Apr 2017 20:53:37 +0000 (22:53 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 24 Apr 2017 20:53:37 +0000 (22:53 +0200)
Change-Id: I6c55d1ab9c148fa71f2fa4f8973684032c77f4d8
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-header.sh

index cab53f3..51865ea 100644 (file)
@@ -140,12 +140,11 @@ set | grep ^MACHINE || true
 
 set -x
 
-#rm -rf ~/.gitconfi* || true
+rm -rf ~/.gitconfi* || true
 
-git config --help
-
-git config --global --replace-all user.email "jenkins-dontreply@build.automotivelinux.org"
-git config --global --replace-all user.name "jenkins-dontreply@build.automotivelinux.org"
+if test ! -f ~/.gitconfig ; then 
+  git config --global --add user.email "jenkins-dontreply@build.automotivelinux.org" --add user.name "jenkins-dontreply@build.automotivelinux.org"
+fi
 
 #git config --global user.email "jenkins-dontreply@build.automotivelinux.org"
 #sync