From 0fb4e9a9ca37eee10457cbe8a28f17dcf530d4a2 Mon Sep 17 00:00:00 2001 From: konghuanjun Date: Thu, 24 Jun 2021 14:20:40 +0800 Subject: [PATCH] fix(ci): git set user and email --- third_party/apply-patches.sh | 2 ++ third_party/prepare.sh | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/third_party/apply-patches.sh b/third_party/apply-patches.sh index e9240660..5ecb358a 100755 --- a/third_party/apply-patches.sh +++ b/third_party/apply-patches.sh @@ -5,6 +5,8 @@ function apply_cpuinfo_patches() { if [ -d "./cpuinfo" ]; then cp ./patches/0001-fix-arm-linux-fix-uclibc-build-error.patch cpuinfo/ pushd cpuinfo >/dev/null + git config user.name "$1" + git config user.email "$2" git am --abort || true git rebase --abort || true git reset --hard diff --git a/third_party/prepare.sh b/third_party/prepare.sh index 7b01f6d5..cd2998e7 100755 --- a/third_party/prepare.sh +++ b/third_party/prepare.sh @@ -31,8 +31,18 @@ git submodule update --init gtest git submodule update --init cutlass git submodule update --init cpuinfo + +name=`git config --get user.name` +if [ -z "$name" ]; then + name="default" +fi +email=`git config --get user.email` +if [ -z "$email" ]; then + email="default" +fi + source ./apply-patches.sh -apply_cpuinfo_patches +apply_cpuinfo_patches ${name} ${email} git submodule update --init OpenBLAS git submodule update --init libzmq -- GitLab