Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/68650 )
Change subject: scripts/update_submodules: Fix "bad revision" error ......................................................................
scripts/update_submodules: Fix "bad revision" error
This adds "origin/trunk" branch name.
Change-Id: Ie84d40fa00c6d0032b93917ad96e60120388eab5 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M util/scripts/update_submodules 1 file changed, 15 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/68650/1
diff --git a/util/scripts/update_submodules b/util/scripts/update_submodules index 6b8eb09..4ca2925 100755 --- a/util/scripts/update_submodules +++ b/util/scripts/update_submodules @@ -110,8 +110,10 @@
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}" -- )"