Browse Source

fix(ci): git set user and email

release-1.5
konghuanjun XindaH 4 years ago
parent
commit
0fb4e9a9ca
2 changed files with 13 additions and 1 deletions
  1. +2
    -0
      third_party/apply-patches.sh
  2. +11
    -1
      third_party/prepare.sh

+ 2
- 0
third_party/apply-patches.sh View File

@@ -5,6 +5,8 @@ function apply_cpuinfo_patches() {
if [ -d "./cpuinfo" ]; then if [ -d "./cpuinfo" ]; then
cp ./patches/0001-fix-arm-linux-fix-uclibc-build-error.patch cpuinfo/ cp ./patches/0001-fix-arm-linux-fix-uclibc-build-error.patch cpuinfo/
pushd cpuinfo >/dev/null pushd cpuinfo >/dev/null
git config user.name "$1"
git config user.email "$2"
git am --abort || true git am --abort || true
git rebase --abort || true git rebase --abort || true
git reset --hard git reset --hard


+ 11
- 1
third_party/prepare.sh View File

@@ -31,8 +31,18 @@ git submodule update --init gtest
git submodule update --init cutlass git submodule update --init cutlass


git submodule update --init cpuinfo 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 source ./apply-patches.sh
apply_cpuinfo_patches
apply_cpuinfo_patches ${name} ${email}


git submodule update --init OpenBLAS git submodule update --init OpenBLAS
git submodule update --init libzmq git submodule update --init libzmq


Loading…
Cancel
Save