From 08b75bb43f001872dc8c50ea410f76d56592ec03 Mon Sep 17 00:00:00 2001
From: "sebastien.heurtematte" <sebastien.heurtematte@eclipse-foundation.org>
Date: Thu, 3 Nov 2022 09:59:21 +0100
Subject: [PATCH] ci: Reusing repo mirror failed./grac.sh reload
 oniro.oniro-core

Related to https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/46

Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a843c1f5..b9449cee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -110,7 +110,10 @@ stages:
     CI_ONIRO_BB_LOCAL_CONF_FETCHCMD_wget: "/usr/bin/env wget -L -t 6 -T 5 --no-check-certificate --passive-ftp"
   before_script:
     # Tell git this repository is safe even if cloned with a different uid
-    - git config --global --add safe.directory $CI_PROJECT_DIR
+    - |
+      git config --global --add safe.directory $CI_PROJECT_DIR
+      git config --global user.email "$GITLAB_USER_EMAIL"
+      git config --global user.name "$GITLAB_USER_NAME"
     # The repo tool seems to insist on having a branch checked out or
     # something like that... Without this we get errors like
     #     fatal: couldn't find remote ref refs/heads/master
-- 
GitLab