소스 검색

disable faulty pre-commit hook

Fabian Peter Hammerle 6 년 전
부모
커밋
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"