提交 0fb4e9a9 编写于 作者: K konghuanjun 提交者: XindaH

fix(ci): git set user and email

上级 6af4a32e
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册