From febd0b179839ff85850b33fd21e76addcb16ced5 Mon Sep 17 00:00:00 2001 From: XindaH Date: Tue, 27 Jul 2021 20:07:46 +0800 Subject: [PATCH] ci(fix): fail when git user name or email is empty --- third_party/prepare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/prepare.sh b/third_party/prepare.sh index cd2998e75..5fe608059 100755 --- a/third_party/prepare.sh +++ b/third_party/prepare.sh @@ -32,11 +32,11 @@ git submodule update --init cutlass git submodule update --init cpuinfo -name=`git config --get user.name` +name=`git config --get user.name || true` if [ -z "$name" ]; then name="default" fi -email=`git config --get user.email` +email=`git config --get user.email || true` if [ -z "$email" ]; then email="default" fi -- GitLab