Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add default commit-msg hook for Git
Browse files Browse the repository at this point in the history
It just checks for a local hook and, if present, executes it. Just like
all the other default Git hooks.
  • Loading branch information
jamesiain committed Dec 17, 2018
1 parent e7217a5 commit fda444a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git_template/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

local_hook="$HOME"/.git_template.local/hooks/commit-msg

if [ -f "$local_hook" ]; then
. "$local_hook"
fi

0 comments on commit fda444a

Please sign in to comment.