Update check-style

This commit is contained in:
Robert Schulze 2024-06-12 16:21:08 +02:00 committed by GitHub
parent 9d1f64e8b3
commit 3fd1918c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,13 +240,12 @@ for test_case in "${tests_with_replicated_merge_tree[@]}"; do
esac
done
# All the submodules should be from https://github.com/
# All submodules should be from https://github.com/
git config --file "$ROOT_PATH/.gitmodules" --get-regexp 'submodule\..+\.url' | \
while read -r line; do
name=${line#submodule.}; name=${name%.url*}
url=${line#* }
[[ "$url" != 'https://github.com/'* ]] && echo "All the submodules should be from https://github.com/, submodule '$name' has '$url'"
[[ "$url" != 'https://github.com/'* ]] && echo "All submodules should be from https://github.com/, submodule '$name' has '$url'"
done
# All submodules should be of this form: [submodule "contrib/libxyz"] (for consistency, the submodule name does matter too much)