git hook: convert "Here Strings" to "Here Documents"

"Here Strings" are a BASH feature while "Here Documents" are POSIX.