Skip to content

Commit

Permalink
hack to pass tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyhaibin committed Dec 6, 2024
1 parent ae81a69 commit a20880c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions release/check-submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ while read hash submodule ref; do
continue
fi

git -C $submodule fetch --depth 100 origin master
git -C $submodule branch -r --contains $hash | grep "origin/master"
git -C $submodule remote set-url origin https://github.com/sunnyhaibin/openpilot-1.git
git -C $submodule fetch --depth 100 origin g70-2024-port-new
git -C $submodule branch -r --contains $hash | grep "origin/g70-2024-port-new"
if [ "$?" -eq 0 ]; then
echo "$submodule ok"
else
echo "$submodule: $hash is not on master"
echo "$submodule: $hash is not on g70-2024-port-new"
exit 1
fi
done <<< $(git submodule status --recursive)

0 comments on commit a20880c

Please sign in to comment.