You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by fr...@apache.org on 2018/11/18 03:17:22 UTC

calcite-avatica git commit: Prompt user for git username when using release script

Repository: calcite-avatica
Updated Branches:
  refs/heads/master d5d779e34 -> f6d3fbbca


Prompt user for git username when using release script


Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/f6d3fbbc
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica/tree/f6d3fbbc
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica/diff/f6d3fbbc

Branch: refs/heads/master
Commit: f6d3fbbca3282a1cdf0862c4779a3a418788b353
Parents: d5d779e
Author: Francis Chuang <fr...@apache.org>
Authored: Sun Nov 18 14:14:27 2018 +1100
Committer: Francis Chuang <fr...@apache.org>
Committed: Sun Nov 18 14:16:23 2018 +1100

----------------------------------------------------------------------
 release.sh | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/f6d3fbbc/release.sh
----------------------------------------------------------------------
diff --git a/release.sh b/release.sh
index 1d609be..bfc0830 100755
--- a/release.sh
+++ b/release.sh
@@ -152,6 +152,7 @@ RELEASE_VERSION=""
 RC_NUMBER=""
 DEV_VERSION=""
 ASF_USERNAME=""
+NAME=""
 
 get_build_configuration(){
 
@@ -160,10 +161,12 @@ get_build_configuration(){
         read -p "Enter the release candidate number (example: if you are releasing rc0, enter 0): " RC_NUMBER
         read -p "Enter the development version number (example: if your release version is 1.12.0, enter 1.13.0): " DEV_VERSION
         read -p "Enter your ASF username: " ASF_USERNAME
+        read -p "Enter your name (this will be used for git commits): " NAME
         echo "Build configured as follows:"
         echo "Release: $RELEASE_VERSION-rc$RC_NUMBER"
         echo "Next development version: $DEV_VERSION-SNAPSHOT"
         echo "ASF Username: $ASF_USERNAME"
+        echo "Name: $NAME"
 
         INVALID_CONFIRMATION=true
 
@@ -189,6 +192,8 @@ set_git_credentials(){
 
     echo https://$ASF_USERNAME:$ASF_PASSWORD@git-wip-us.apache.org >> /root/.git-credentials
     git config --global credential.helper 'store --file=/root/.git-credentials'
+
+    git config --global user.name $NAME
 }
 
 set_maven_credentials(){