From 577aafb6836fa9026b27bbd5fa6912cfe875f16e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Feb 2023 13:09:20 -0500 Subject: [PATCH] chore: remove deprecated git functions --- docs/appendices/0.30.0-migration-guide.md | 3 +++ plugins/git/functions | 17 ----------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/docs/appendices/0.30.0-migration-guide.md b/docs/appendices/0.30.0-migration-guide.md index 0045e6002..a4d14d6ff 100644 --- a/docs/appendices/0.30.0-migration-guide.md +++ b/docs/appendices/0.30.0-migration-guide.md @@ -19,3 +19,6 @@ - `common#is_container_running()` (deprecated since 0.12.6) is removed in favor of `common#is_container_status()`. - `common#is_app_running()` (deprecated since 0.22.0) is removed in favor of `ps#fn-ps-is-app-running()`. - The global `--rm-container` and `--rm` flags - deprecated since 0.25.0 - have been removed. +- The following git shell functions hve been removed. + - `git#use_git_worktree()` (deprecated since 0.23.7) has been removed. There is no alternative as the function has been made internal. + - `git#git_deploy_branch()`(deprecated since 0.21.0) has been removed in favor of `plugn trigger git-deploy-branch`. diff --git a/plugins/git/functions b/plugins/git/functions index c626a53fc..6773e320f 100755 --- a/plugins/git/functions +++ b/plugins/git/functions @@ -6,14 +6,6 @@ source "$PLUGIN_AVAILABLE_PATH/git/internal-functions" set -eo pipefail [[ $DOKKU_TRACE ]] && set -x -use_git_worktree() { - declare desc="detects whether to use git worktree" - declare deprecated=true - dokku_log_warn "Deprecated: fn-git-use-worktree" - - fn-git-use-worktree -} - git_build_app_repo() { declare desc="builds local git app repo for app" declare APP="$1" REV="$2" @@ -77,15 +69,6 @@ git_trigger_build() { dokku_receive "$APP" "$BUILDER" "$TMP_WORK_DIR" } -git_deploy_branch() { - declare desc="retrieve the deploy branch for a given application" - declare APP="$1" - declare deprecated=true - dokku_log_warn "Deprecated: plugn#git-deploy-branch" - - fn-git-deploy-branch "$APP" -} - cmd-git-hook() { declare desc="kick off receive-app trigger from git prereceive hook" declare cmd="git-hook"