You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get the latest commit on the remote branch (e.g., origin/main)
remote_commit=$(git rev-parse origin/main)
if [ "$current_commit" != "$remote_commit" ]; then
echo "Submodule libaddr2line has updates available."
current_branch=$(git branch --show-current)
if [ "$current_branch" = "master" ]; then
echo "Pushing to the master branch is not allowed. To proceed, please create a new branch, re-run 'update-submodules.sh', and open a merge into the main branch."
exit
fi
git pull origin main
cd ..
git add libaddr2line
git commit -m "Updates libaddr2line submodule to latest commit"