From: Anil Belur Date: Tue, 9 Mar 2021 23:40:13 +0000 (+1000) Subject: Update prettier pre-commit to ignore stage error X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=inline;h=9d5f0d595667bf2c784ffd0f7f3e2172f3a09b77;p=releng%2Fbuilder.git Update prettier pre-commit to ignore stage error 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: Iaf2727bb436342f2ee64adfacfbdd09525901e60 Signed-off-by: Anil Belur --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25be085b2..d8494c966 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: rev: v2.1.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint rev: v0.13.1