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>
Robert Schiele committed
Oct 18, 2007 at 00:27 UTC
a2d6b872dbf4e65525c9ba55e820e2ea26011ce1
1 file changed
+1
-1
contrib/hooks/post-receive-email
+1
-1
@@ -323,7 +323,7 @@ generate_update_branch_email()
323
echo " via $rev ($revtype)"
324
done
325
326
- if [ -z "$fastforward" ]; then
326
+ if [ "$fast_forward" ]; then
327
echo " from $oldrev ($oldrev_type)"
328
else
329
# 1. Existing revisions were removed. In this case newrev is a