On Wed, Feb 1, 2017 at 12:32 AM, Lev Zlotin <
lev.z...@gmail.com> wrote:
> Hi,
> Just tried to use
> ".git/GIT_COLA_MSG" file name is not passed in a first parameter, parameter
> is empty; When using it hardcoded, hook is working OK.
We support a cola-specific hook. See the documentation.
It must be named "cola-prepare-commit-msg"
instead of "prepare-commit-msg".
The cola hook is invoked via the Commit->Prepare Commit Message
menu action. It is not invoked by Git when preparing commits.
The cola hook is passed the absolute path to the file
as its first argument. Example:
#!/bin/sh
# .git/hooks/cola-prepare-commit-msg
echo subject: ok >"$1"
echo >>"$1"
echo extended description: "$1">>"$1"
exit 0
--
David