From 833d38b2bbf0d0ade6c615115f90345e0a40e742 Mon Sep 17 00:00:00 2001
From: Simon G <development@gol.ms>
Date: Thu, 30 Jun 2022 18:22:12 +0200
Subject: [PATCH] chore(husky): fix commit-msg hook to handle git parameter

---
 .husky/commit-msg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.husky/commit-msg b/.husky/commit-msg
index 755482c..4243503 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -1,4 +1,4 @@
 #!/bin/sh
 . "$(dirname "$0")/_/husky.sh"
 
-npx --no -- commitlint --edit "\${1}" || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;32git commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; }
+npx --no -- commitlint --edit $1 || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;32git commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; }