mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #3257 from dokku/josegonzalez-patch-1
fix: suppress output in git plugin during builds
This commit is contained in:
@@ -44,7 +44,7 @@ git_build_app_repo() {
|
||||
pushd "$DOKKU_ROOT/$APP" > /dev/null
|
||||
# unset the git quarantine path to allow us to use 2.13.0+
|
||||
# See this issue for more information: https://github.com/dokku/dokku/issues/2796
|
||||
env -u GIT_QUARANTINE_PATH git worktree add "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV" > /dev/null
|
||||
suppress_output env -u GIT_QUARANTINE_PATH git worktree add "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV"
|
||||
popd > /dev/null 2>&1 || pushd "/tmp" > /dev/null
|
||||
pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null
|
||||
else
|
||||
@@ -69,9 +69,9 @@ git_build_app_repo() {
|
||||
find . -name .git -prune -exec rm -rf {} \; > /dev/null
|
||||
|
||||
if use_git_worktree; then
|
||||
pushd "$DOKKU_ROOT/$APP"
|
||||
pushd "$DOKKU_ROOT/$APP" > /dev/null
|
||||
git worktree prune
|
||||
popd
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
|
||||
|
||||
Reference in New Issue
Block a user