Don't shallow clone submodules (revert #1064)

This commit is contained in:
Jerry Zhao
2022-03-18 11:47:09 -07:00
parent 38034cfafb
commit f6d8beed75
2 changed files with 0 additions and 47 deletions

View File

@@ -24,9 +24,6 @@ search_submodule() {
echo "Running check on submodule $submodule in $dir"
# Initialize submodule and get the hashes
git submodule update --init $dir/$submodule
git -C $dir/$submodule fetch --unshallow
git -C $dir/$submodule config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git -C $dir/$submodule fetch origin
status=$(git submodule status)
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")