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

francischuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git


The following commit(s) were added to refs/heads/main by this push:
     new 78c5f5428 Install git and set safe.directory when using docker release 
script to promote release
78c5f5428 is described below

commit 78c5f54280b2fe3813aea0cbd9fbb7faf399d9dd
Author: Francis Chuang <[email protected]>
AuthorDate: Mon Dec 4 09:55:14 2023 +1100

    Install git and set safe.directory when using docker release script to 
promote release
---
 docker.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/docker.sh b/docker.sh
index 7bd631155..a22f2fb55 100755
--- a/docker.sh
+++ b/docker.sh
@@ -37,9 +37,9 @@ install_gnupg2_and_svn(){
   apt install gnupg2 subversion -y
 }
 
-install_svn(){
+install_git_and_svn(){
   apt update
-  apt install subversion -y
+  apt install git subversion -y
 }
 
 get_gpg_keys(){
@@ -236,6 +236,8 @@ get_asf_credentials(){
 
 promote_release(){
 
+    git config --global --add safe.directory /src
+
     LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
 
     if [[ ! $LATEST_TAG =~ .+-rc[[:digit:]]+$ ]]; then
@@ -308,7 +310,7 @@ case $1 in
         ;;
 
     promote-release)
-        install_svn
+        install_git_and_svn
         promote_release
         ;;
 

Reply via email to