This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch HBASE-29078
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/HBASE-29078 by this push:
     new b867ec4c14f use git rev-parse
b867ec4c14f is described below

commit b867ec4c14f2dbe8b6b498c99fa036f4a47b9737
Author: Duo Zhang <[email protected]>
AuthorDate: Thu Feb 13 23:41:14 2025 +0800

    use git rev-parse
---
 dev-support/jenkins-scripts/generate-hbase-website.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-support/jenkins-scripts/generate-hbase-website.sh 
b/dev-support/jenkins-scripts/generate-hbase-website.sh
index 31cbd1252ae..5d080f515ba 100644
--- a/dev-support/jenkins-scripts/generate-hbase-website.sh
+++ b/dev-support/jenkins-scripts/generate-hbase-website.sh
@@ -132,10 +132,10 @@ cd "${working_dir}"
 rm -Rf -- *.patch *.patch.zip target *.txt hbase-site
 
 # Save and print the SHA we are building
-CURRENT_HBASE_COMMIT="$(cd "${component_dir}" && git show-ref --hash 
--dereference --verify refs/remotes/origin/HEAD)"
+CURRENT_HBASE_COMMIT="$(cd "${component_dir}" && git rev-parse HEAD)"
 # Fail if it's empty
 if [ -z "${CURRENT_HBASE_COMMIT}" ]; then
-  echo "Got back a blank answer for the current HEAD on the remote hbase 
repository. failing."
+  echo "Got back a blank answer for the current HEAD. failing."
   exit 1
 fi
 echo "Current HBase commit: $CURRENT_HBASE_COMMIT"

Reply via email to