summaryrefslogtreecommitdiff
path: root/Omni/Ide/hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Ide/hooks/commit-msg')
-rwxr-xr-xOmni/Ide/hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Ide/hooks/commit-msg b/Omni/Ide/hooks/commit-msg
index e07d1f4..a91b651 100755
--- a/Omni/Ide/hooks/commit-msg
+++ b/Omni/Ide/hooks/commit-msg
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if ! gitlint --ignore-stdin --staged --msg-filename "$1" run-hook; then
backup="$CODEROOT"/.git/COMMIT_EDITMSG.backup
- cp "$CODEROOT"/.git/COMMIT_EDITMSG "$backup"
+ cp "$1" "$backup"
echo "error: gitlint failed, saved your commit msg as $backup"
exit 1
fi