浏览代码

disable faulty pre-commit hook

Fabian Peter Hammerle 5 年之前
父节点
当前提交
89b3a652b4
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. 1 1
      gitconfig
  2. 0 12
      hooks/prepare-commit-msg

+ 1 - 1
gitconfig

@@ -5,7 +5,7 @@
 
 [core]
 	excludesfile = ~/.config/git/gitignore
-	hooksPath = ~/.config/git/hooks
+	# hooksPath = ~/.config/git/hooks
 
 [interactive]
 	singleKey = true

+ 0 - 12
hooks/prepare-commit-msg

@@ -1,12 +0,0 @@
-#!/bin/sh
-
-set -x
-
-MSG_PATH=$1
-
-TMP_PATH="$(mktemp)"
-
-git log --format='%B' -1 | sed 's/^/#/' >> "$TMP_PATH"
-cat "$MSG_PATH" >> "$TMP_PATH"
-
-mv "$TMP_PATH" "$MSG_PATH"