summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/scripts/update_submodules4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/scripts/update_submodules b/util/scripts/update_submodules
index 6b8eb09960..4ca2925ff7 100755
--- a/util/scripts/update_submodules
+++ b/util/scripts/update_submodules
@@ -110,8 +110,10 @@ main() {
if git branch -a | grep -q "origin/main"; then
branch_name="origin/main"
- else
+ elif git branch -a | grep -q "origin/master"; then
branch_name="origin/master"
+ elif git branch -a | grep -q "origin/trunk"; then
+ branch_name="origin/trunk"
fi
updated_commit_id="$(git log --pretty='%h' -n 1 "${branch_name}" -- )"