Skip to content
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

Merged
merged 2 commits into from Apr 11, 2017
Merged

Quiet output for git-related commands #2710

merged 2 commits into from Apr 11, 2017

Conversation

josegonzalez
Copy link
Member

No description provided.

Copy link
Member

@michaelshobbs michaelshobbs left a 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'"/"
Copy link
Member Author

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
Copy link
Member Author

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).

@josegonzalez josegonzalez merged commit 9aef43d into master Apr 11, 2017
@josegonzalez josegonzalez deleted the quiet-git branch April 11, 2017 00:35
josegonzalez added a commit that referenced this pull request Apr 11, 2017
# History

## 0.9.4

### Documentation

- #2710: @josegonzalez Quiet output for git-related commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants