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

aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/main by this push:
     new ac651af  YETUS-1073. GITHUB_REPO_DEFAULT isn't honored (#199)
ac651af is described below

commit ac651af90232c6ee54b066f9cf490c2ce455a772
Author: Allen Wittenauer <[email protected]>
AuthorDate: Tue Nov 10 15:17:50 2020 -0800

    YETUS-1073. GITHUB_REPO_DEFAULT isn't honored (#199)
    
    Signed-off-by: Sean Busbey <[email protected]>
---
 precommit/src/main/shell/test-patch.d/github.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/precommit/src/main/shell/test-patch.d/github.sh 
b/precommit/src/main/shell/test-patch.d/github.sh
index 0c83079..79fcbab 100755
--- a/precommit/src/main/shell/test-patch.d/github.sh
+++ b/precommit/src/main/shell/test-patch.d/github.sh
@@ -184,6 +184,8 @@ function github_initialize
     GITHUB_AUTH=(-H "Authorization: token ${GITHUB_TOKEN}")
   fi
 
+  GITHUB_REPO=${GITHUB_REPO:-${GITHUB_REPO_DEFAULT}}
+
   if [[ -z "${GITHUB_REPO}" ]]; then
     yetus_error "WARNING: --github-repo not autodetermined or provided. Brute 
forcing."
     pushd "${BASEDIR}" >/dev/null || return 1

Reply via email to