From 16e4bc8f608cd2634948982f50341a7de13fe713 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 25 Aug 2018 01:52:20 -0400 Subject: [PATCH] fix: suppress output in git plugin during builds --- plugins/git/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/git/functions b/plugins/git/functions index eb23bc38e..663796103 100755 --- a/plugins/git/functions +++ b/plugins/git/functions @@ -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