We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc05b90 commit aea302bCopy full SHA for aea302b
.pre-commit-config.yaml
@@ -101,8 +101,8 @@ repos:
101
args:
102
- -c
103
- |
104
- if ! grep -q "^Signed-off-by: $(git config user.name) <$(git config user.email)>" .git/COMMIT_EDITMSG; then
105
- printf "\nSigned-off-by: $(git config user.name) <$(git config user.email)>\n" >> .git/COMMIT_EDITMSG
+ if ! grep -q "^Signed-off-by: $(git config user.name) <$(git config user.email)>" "$(git rev-parse --git-path COMMIT_EDITMSG)"; then
+ printf "\nSigned-off-by: $(git config user.name) <$(git config user.email)>\n" >> "$(git rev-parse --git-path COMMIT_EDITMSG)"
106
fi
107
language: system
108
verbose: true
0 commit comments