From e42170194c24a06069719021e0082ffe6c80364b Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 8 Dec 2023 15:26:18 +0530 Subject: [PATCH] fix: signing commit disable for now --- .githooks/commit-msg | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.githooks/commit-msg b/.githooks/commit-msg index 3a1276348..b5f79a6af 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -33,17 +33,10 @@ echo commit_regex="^(Merge branch|(feat|fix|chore|refactor|docs|test|style|enhancement):).+" -if git log --show-signature -n 1 | grep -q 'gpg:'; then - if ! echo "$commit_msg" | grep -Ei "$commit_regex" ; then - echo "Aborting commit. Your commit message does not follow the conventional format." - echo "The commit message should begin with one of the following keywords followed by a colon: 'feat', 'fix', 'chore', 'refactor', 'docs', 'test' or 'style'. For example, it should be formatted like this: 'feat: - '" - exit 1 - fi -else - echo "~~~~**** Error: Commit Signature Missing. ****~~~~" - echo "Please make sure to sign your commits. You can sign your commit by using the '-S' option with 'git commit'." - echo "Example: git commit -S -m 'Your commit message'" - echo "Signing commits is crucial for verifying contributions. Consult GitHub's documentation on commit signature verification for guidance: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits" + +if ! echo "$commit_msg" | grep -Ei "$commit_regex" ; then + echo "Aborting commit. Your commit message does not follow the conventional format." + echo "The commit message should begin with one of the following keywords followed by a colon: 'feat', 'fix', 'chore', 'refactor', 'docs', 'test' or 'style'. For example, it should be formatted like this: 'feat: - '" exit 1 fi