mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 16:22:08 +08:00
bcd4bb4821
date: 2023-02-17T21:02:50 master commit: 89f68bf0cbf53a81b0553d3816fdbe522f941fa1
13 lines
334 B
Bash
Executable File
13 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while read hash submodule ref; do
|
|
git -C $submodule fetch --depth 200 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)
|