From 2cb20f3fd0fc8b42f4ed9543431740be63c2b608 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Jun 2016 20:18:07 -0400 Subject: [PATCH] Remove use of dokku binary from git plugin --- plugins/git/receive-app | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/git/receive-app b/plugins/git/receive-app index 162fe5172..1af0457d2 100755 --- a/plugins/git/receive-app +++ b/plugins/git/receive-app @@ -1,18 +1,20 @@ #!/usr/bin/env bash set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" +source "$PLUGIN_AVAILABLE_PATH/git/functions" -git_receive_app(){ +git_receive_app() { declare desc="git receive-app plugin trigger" local trigger="git_receive_app" local APP="$1"; local REV="$2" + local cmd="git-build" # Don't trigger git build if there is no git repository. if [[ ! -d "$DOKKU_ROOT/$APP/refs" ]]; then true else # shellcheck disable=SC2086 - dokku git-build $APP $REV + git_build_cmd $cmd $APP $REV fi }