msgpack-python/ocaml/bleis-hooks/commit-msg
2011-04-03 17:11:53 +09:00

14 lines
228 B
Bash
Executable file

#! /bin/sh
if [ -n "${GIT_DIR}" ]; then
hooksdir="./${GIT_DIR}/hooks/"
else
hooksdir="./"
fi
. "${hooksdir}common.sh"
ticket="$(extractTicketId)"
if [ -n "${ticket}" ]; then
appendMsgTo1stLine "$1" "${ticket}"
fi