gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

Pre-commit hooks can cause many of the commands to fail

Open mhspektr opened this issue 5 months ago • 0 comments

It would be nice if the commands that push supported a --no-verify flag. I've had to implement a local function like this to get around the pre-commit hooks that sometimes fail during push after a rebase.

# git stack --push without running hooks.
gs-push-quiet() {
    git config core.hooksPath /dev/null
    gh stack push
    git config --unset core.hooksPath
}

Not all my colleagues use pre-commit, so sometimes a random change somewhere in the mono repo will block a push without --no-verify, even though all my commits are clean.

mhspektr avatar Jun 17 '26 15:06 mhspektr