sbt-release
sbt-release copied to clipboard
Release process should skip running any of git hooks
When a repository has hooks enabled (esp. *-commit
and pre-push
hooks), release process will trigger them. Given that these hooks usually (but not always) run various tests, which has been already done by the release process, that wastes a lot of time.
Would it be possible to add a flag to skip hooks (in git, that means passing --no-verify
) or disable them completely?
👍 I have a pre commit hook to disallow committing to master locally. I have to remove my pre commit hooks before running sbt release because commitReleaseVersion does not support the --no-verify git command line param.