Code Review
/
releng
/
global-jjb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4d1aaad
)
Update prettier pre-commit to ignore stage error
25/67025/1
author
Anil Belur
<abelur@linuxfoundation.org>
Wed, 10 Mar 2021 07:20:54 +0000
(17:20 +1000)
committer
Anil Belur
<abelur@linuxfoundation.org>
Wed, 10 Mar 2021 07:20:54 +0000
(17:20 +1000)
Set stages to 'commit' to overide the default_stages.
This fixes the issue seen while using git-commmit:
[error] No matching files. Patterns: .git/COMMIT_EDITMSG
Change-Id: I959744b89e6cb22e84fca9119a1405e354734cbb
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.pre-commit-config.yaml
patch
|
blob
|
history
diff --git
a/.pre-commit-config.yaml
b/.pre-commit-config.yaml
index
7141eed
..
89484cc
100644
(file)
--- a/
.pre-commit-config.yaml
+++ b/
.pre-commit-config.yaml
@@
-9,6
+9,7
@@
repos:
rev: v2.1.2
hooks:
- id: prettier
+ stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1