-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(git): skip git hooks via config param (#499)
**Problem:** HUSKY doesn't necessarily account for all of the ways that git hooks can be configured. **Solution:** Use `git -c core.hooksPath=/dev/null` when wanting to skip hooks.
- Loading branch information
1 parent
a18f2b8
commit 5a6faab
Showing
2 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@onerepo/core': patch | ||
'@onerepo/git': patch | ||
'onerepo': patch | ||
--- | ||
|
||
When running git staging workflow (eg, during `tasks -c pre-commit`), forcibly skip all git hooks, not just using HUSKY environment variables. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters