Skip to content

Commit c7d1e85

Browse files
AdrianDCasottile
authored andcommitted
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 5b5b46d commit c7d1e85

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
@@ -115,6 +115,7 @@
115115
entry: destroyed-symlinks
116116
language: python
117117
types: [file]
118+
stages: [pre-commit, pre-push, manual]
118119
- id: detect-aws-credentials
119120
name: detect aws credentials
120121
description: detects *your* aws credentials from the aws cli credentials file.

0 commit comments

Comments
 (0)