Browse Source

Meta: Fix commit linting commit-hook to receive COMMIT_EDITMSG

master
Riyyi 2 years ago
parent
commit
1361ee04f9
  1. 2
      script/pre-commit.sh

2
script/pre-commit.sh

@ -60,7 +60,7 @@ install() {
commitMsg=".git/hooks/commit-msg"
create "$commitMsg"
sed -Ei "/lint-commit.sh/d" "$commitMsg"
sed -Ei "\$ a $subDir/lint-commit.sh" "$commitMsg"
sed -Ei "\$ a $subDir/lint-commit.sh \"\$@\"" "$commitMsg"
}
remove() {

Loading…
Cancel
Save