[PATCH] Fix typo on variable name $newref should be $newrev in sample update hook
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Mar 2, 2007, 10:27 UTC
- Message-ID
- <200703021027.00203.andyparkins@gmail.com>
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(-)
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