Fix git sparse clone cone arguments

This commit is contained in:
klzgrad 2022-05-02 17:33:55 +08:00
parent 1c54cb2c86
commit 0ae9a43973

View File

@ -57,7 +57,7 @@ if [ "$USE_ANDROID_NDK" -a ! -d third_party/android_ndk ]; then
git clone --depth=1 --filter=blob:none --no-checkout https://chromium.googlesource.com/android_ndk.git third_party/android_ndk git clone --depth=1 --filter=blob:none --no-checkout https://chromium.googlesource.com/android_ndk.git third_party/android_ndk
cd third_party/android_ndk cd third_party/android_ndk
git sparse-checkout init --cone git sparse-checkout init --cone
git sparse-checkout set /sources/android/cpufeatures /toolchains/llvm/prebuilt git sparse-checkout set sources/android/cpufeatures toolchains/llvm/prebuilt
git -c advice.detachedHead=false checkout "$android_ndk_version" git -c advice.detachedHead=false checkout "$android_ndk_version"
rm -rf .git rm -rf .git
find toolchains -type f -regextype egrep \! -regex \ find toolchains -type f -regextype egrep \! -regex \