Meta: Fix commit linting commit-hook to receive COMMIT_EDITMSG

This commit is contained in:
Riyyi
2022-08-19 00:17:51 +02:00
parent a858eaef1d
commit 1361ee04f9
+1 -1
View File
@@ -60,7 +60,7 @@ install() {
commitMsg=".git/hooks/commit-msg" commitMsg=".git/hooks/commit-msg"
create "$commitMsg" create "$commitMsg"
sed -Ei "/lint-commit.sh/d" "$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() { remove() {