Don't shallow clone submodules (revert #1064)
This commit is contained in:
3
.github/scripts/check-commit.sh
vendored
3
.github/scripts/check-commit.sh
vendored
@@ -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:]]*")
|
||||
|
||||
Reference in New Issue
Block a user