From 419d29331d1994cc55980629aeb53563d0e628aa Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 21 Jan 2019 12:30:42 -0800 Subject: [PATCH] fix set user/email --- posix/clone | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/posix/clone b/posix/clone index e4a3a3d..d0d9e19 100755 --- a/posix/clone +++ b/posix/clone @@ -33,11 +33,11 @@ fi # following environment variables: -if [[ -z "${GIT_AUTHOR_NAME}" ]]; then +if [[ -z "${DRONE_COMMIT_AUTHOR_NAME}" ]]; then export DRONE_COMMIT_AUTHOR_NAME=drone fi -if [[ -z "${GIT_AUTHOR_EMAIL}" ]]; then +if [[ -z "${DRONE_COMMIT_AUTHOR_EMAIL}" ]]; then export DRONE_COMMIT_AUTHOR_EMAIL=drone@localhost fi @@ -45,8 +45,6 @@ export GIT_AUTHOR_NAME=${DRONE_COMMIT_AUTHOR_NAME} export GIT_AUTHOR_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL} export GIT_COMMITTER_NAME=${DRONE_COMMIT_AUTHOR_NAME} export GIT_COMMITTER_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL} -# GIT_SSL_NO_VERIFY= - # invoke the sub-script based on the drone event type. # TODO we should ultimately look at the ref, since