Repository: calcite-avatica
Updated Branches:
  refs/heads/branch-avatica-1.13 6f6101a8f -> 0714e976c (forced update)


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/branch-avatica-1.13
Commit: f6d3fbbca3282a1cdf0862c4779a3a418788b353
Parents: d5d779e
Author: Francis Chuang <[email protected]>
Authored: Sun Nov 18 14:14:27 2018 +1100
Committer: Francis Chuang <[email protected]>
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:[email protected] >> 
/root/.git-credentials
     git config --global credential.helper 'store --file=/root/.git-credentials'
+
+    git config --global user.name $NAME
 }
 
 set_maven_credentials(){

Reply via email to