You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/11/02 13:41:49 UTC
(doris) branch branch-2.0 updated: [Pick](submodule) print current submodule commit id when building #26017 (#26294)
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 <ai...@gmail.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org