sbt-release icon indicating copy to clipboard operation
sbt-release copied to clipboard

Release process should skip running any of git hooks

Open knl opened this issue 8 years ago • 1 comments

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?

knl avatar Feb 08 '17 10:02 knl

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

zachlefevre avatar Apr 20 '20 22:04 zachlefevre