mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 22:32:11 +08:00
4012d181e1
date: 2024-03-17T10:14:38 master commit: 7e9a909e0e57ecb31df4c87c5b9a06b1204fd034
13 lines
335 B
Bash
Executable File
13 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while read hash submodule ref; do
|
|
git -C $submodule fetch --depth 2000 origin master
|
|
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)
|