Skip to content

Git push to remote in verbose mode #315

@llaville

Description

@llaville

While, I am always used now the hook:pre-push CapN command to test my hook before to use it in live condition.

Sometimes I forgot it, and I want be to have the same results when I run the following command

git push origin <remote-branch> --dry-run -v

Note

Usage of --dry-run flag here is for test purpose only. The main important condition, is the use of -v (verbose) flag.

Important

The verbosity setting into captainhook.json config file is defined to normal

Current Output

Image

Expected Output

Image

This result is what I got, if I run following command :

vendor/bin/captainhook hook:pre-push -v

Important

The -v flag is provided while the verbosity is still defined to normal in CaptainHook config file.

Actually, if I want the expected result in LIVE mode (git push), I MUST set the verbosity setting to verbose into captainhook.json.

My request is to have the same behavior (LIVE mode and hook:pre-push command) without to change the verbosity setting in CaptainHook config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions