Files
StarPilot/release/check-submodules.sh
T
Vehicle Researcher bcd4bb4821 openpilot v0.9.1 release
date: 2023-02-17T21:02:50
master commit: 89f68bf0cbf53a81b0553d3816fdbe522f941fa1
2023-02-23 14:29:12 -08:00

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)