Sfoglia il codice sorgente

disable faulty pre-commit hook

Fabian Peter Hammerle 5 anni fa
parent
commit
89b3a652b4
2 ha cambiato i file con 1 aggiunte e 13 eliminazioni
  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"