From 31332a5061de2572445d6974d1ca92f01dc85ebe Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 7 Jan 2021 05:04:11 -0500 Subject: [PATCH] fix: move fn-git-create-hook to internal-functions Its unused elsewhere. --- plugins/git/functions | 19 ------------------- plugins/git/internal-functions | 19 +++++++++++++++++++ plugins/git/post-create | 2 +- plugins/git/subcommands/initialize | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/plugins/git/functions b/plugins/git/functions index 67222785e..8d669ad84 100755 --- a/plugins/git/functions +++ b/plugins/git/functions @@ -234,22 +234,3 @@ cmd-git-glob() { fi git-shell -c "$args" } - -fn-git-create-hook() { - declare APP="$1" - local APP_PATH="$DOKKU_ROOT/$APP" - local PRERECEIVE_HOOK="$APP_PATH/hooks/pre-receive" - - if [[ ! -d "$APP_PATH/refs" ]]; then - git init --bare "$APP_PATH" >/dev/null - fi - - cat >"$PRERECEIVE_HOOK" </dev/null + fi + + cat >"$PRERECEIVE_HOOK" <