fix: suppress output in git plugin during builds

This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2018-08-25 01:52:20 -04:00
1 parent a0cb2d932a
commit 16e4bc8f60
1 file changed
+3 -3
+3 -3
View File
@@ -44,7 +44,7 @@ git_build_app_repo() {
pushd "$DOKKU_ROOT/$APP" > /dev/null pushd "$DOKKU_ROOT/$APP" > /dev/null
# unset the git quarantine path to allow us to use 2.13.0+ # 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 # 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 popd > /dev/null 2>&1 || pushd "/tmp" > /dev/null
pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null
else else
@@ -69,9 +69,9 @@ git_build_app_repo() {
find . -name .git -prune -exec rm -rf {} \; > /dev/null find . -name .git -prune -exec rm -rf {} \; > /dev/null
if use_git_worktree; then if use_git_worktree; then
pushd "$DOKKU_ROOT/$APP" pushd "$DOKKU_ROOT/$APP" > /dev/null
git worktree prune git worktree prune
popd popd > /dev/null
fi fi
local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL