The log message would be empty for new branches because git-rev-list was being passed $newref instead of the correct variable $newrev.
Signed-off-by: Andy Parkins <andyparkins@gmail.com> --- templates/hooks--update | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to templates/hooks--update +1 −1
diff --git a/templates/hooks--update b/templates/hooks--update index fd1f73d..2a707e5 100644 --- a/templates/hooks--update +++ b/templates/hooks--update @@ -148,7 +148,7 @@ case "$refname_type" in # This shows all log entries that are not already covered by # another ref - i.e. commits that are now accessible from this # ref that were previously not accessible - git-rev-parse --not --all | git-rev-list --stdin --pretty $newref + git-rev-parse --not --all | git-rev-list --stdin --pretty $newrev echo $LOGEND else # oldrev is valid
-- 1.5.0.2.205.g74e20