Skip to content

Commit 351b6f7

Browse files
committed
fix(pre-commit-hooks): set stages for destroyed-symlinks
The 'destroyed-symlinks' hook runs upon 'commit-msg' hook, however when used in 'git submodules', repository scope breaks > pre_commit_hooks.util.CalledProcessError: (('git', 'status', > '--porcelain=v2', '-z', '--', '.../COMMIT_EDITMSG'), 0, 128, '', > b"fatal: .../COMMIT_EDITMSG: '...' is outside repository at '...'\n") --- Signed-off-by: Adrian DC <[email protected]>
1 parent 4294554 commit 351b6f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
entry: destroyed-symlinks
113113
language: python
114114
types: [file]
115+
stages: [commit, push, manual]
115116
- id: detect-aws-credentials
116117
name: detect aws credentials
117118
description: detects *your* aws credentials from the aws cli credentials file.

0 commit comments

Comments
 (0)