This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 4c3ce52a033 [Pick](submodule) print current submodule commit id when
building #26017 (#26294)
4c3ce52a033 is described below
commit 4c3ce52a033ca2faf90fae261929e4b87671e345
Author: airborne12 <[email protected]>
AuthorDate: Thu Nov 2 21:41:42 2023 +0800
[Pick](submodule) print current submodule commit id when building #26017
(#26294)
---
build.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/build.sh b/build.sh
index f5bd47eb9a5..a7e31fa9b3b 100755
--- a/build.sh
+++ b/build.sh
@@ -281,6 +281,13 @@ update_submodule() {
echo "Update ${submodule_name} submodule ..."
git submodule update --init --recursive "${submodule_path}"
exit_code=$?
+ if [[ "${exit_code}" -eq 0 ]]; then
+ cd "${submodule_path}"
+ submodule_commit_id=$(git rev-parse HEAD)
+ cd -
+ expect_submodule_commit_id=$(git ls-tree HEAD "${submodule_path}" |
awk '{print $3}')
+ echo "Current commit ID of ${submodule_name} submodule:
${submodule_commit_id}, expected is ${expect_submodule_commit_id}"
+ fi
set -e
if [[ "${exit_code}" -ne 0 ]]; then
# try to get submodule's current commit
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]