2024-08-14 12:22:13 +08:00
|
|
|
#!/usr/bin/env bash
|
2021-07-02 14:12:39 +08:00
|
|
|
|
|
|
|
while read hash submodule ref; do
|
2024-11-14 11:43:06 +08:00
|
|
|
if [ "$submodule" = "tinygrad_repo" ]; then
|
|
|
|
echo "Skipping $submodule"
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
git -C $submodule fetch --depth 100 origin master
|
2021-07-02 14:12:39 +08:00
|
|
|
git -C $submodule branch -r --contains $hash | grep "origin/master"
|
|
|
|
if [ "$?" -eq 0 ]; then
|
|
|
|
echo "$submodule ok"
|
|
|
|
else
|
|
|
|
echo "$submodule: $hash is not on master"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done <<< $(git submodule status --recursive)
|