New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quiet output for git-related commands #2710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you show examples of what we're hiding here?
@@ -60,7 +60,7 @@ git_build_app_repo() { | |||
suppress_output git submodule update --init --recursive | |||
find . -name .git -prune -exec rm -rf {} \; > /dev/null | |||
|
|||
plugn trigger post-extract "$APP" "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV" | |||
plugn trigger post-extract "$APP" "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV" | sed -u "s/^/"$'\e[1G'"/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes the remote:
prefix that we normally remove when it's just triggered by pre-receive-app
.
@@ -107,7 +107,7 @@ git_hook_cmd() { | |||
local APP="$2" | |||
local DOKKU_DEPLOY_BRANCH="$(git_deploy_branch "$APP")" | |||
|
|||
if ! git check-ref-format --branch "$DOKKU_DEPLOY_BRANCH" 2> /dev/null; then | |||
if ! git check-ref-format --branch "$DOKKU_DEPLOY_BRANCH" > /dev/null 2>&1; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This outputs the branch name, though we actually don't care about the output, so long as the command returns zero (meaning its a valid branch name).
# History ## 0.9.4 ### Documentation - #2710: @josegonzalez Quiet output for git-related commands
No description provided.