summaryrefslogtreecommitdiff
path: root/contrib/hooks/post-receive-email
diff options
context:
space:
mode:
authorLibravatar Robert Schiele <rschiele@gmail.com>2007-10-18 00:27:51 +0200
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-18 00:59:25 -0400
commita2d6b872dbf4e65525c9ba55e820e2ea26011ce1 (patch)
tree04f0995283cdffbd34ba79b14ec36a1639720d79 /contrib/hooks/post-receive-email
parentDocument additional 1.5.3.5 fixes in release notes (diff)
downloadtgif-a2d6b872dbf4e65525c9ba55e820e2ea26011ce1.tar.xz
fixing output of non-fast-forward output of post-receive-email
post-receive-email has one place where the variable fast_forward is not spelled correctly. At the same place the logic was reversed. The combination of both bugs made the script work correctly for fast-forward commits but not for non-fast-forward ones. This change fixes this to be correct in both cases. Signed-off-by: Robert Schiele <rschiele@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'contrib/hooks/post-receive-email')
-rw-r--r--contrib/hooks/post-receive-email2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index cbbd02fadd..28a06c7f38 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -323,7 +323,7 @@ generate_update_branch_email()
echo " via $rev ($revtype)"
done
- if [ -z "$fastforward" ]; then
+ if [ "$fast_forward" ]; then
echo " from $oldrev ($oldrev_type)"
else
# 1. Existing revisions were removed. In this case newrev is a