summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0995520)
raw | patch | inline | side by side (parent: 0995520)
author | Robert Schiele <rschiele@gmail.com> | |
Wed, 17 Oct 2007 22:27:51 +0000 (00:27 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 18 Oct 2007 04:59:25 +0000 (00:59 -0400) |
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>
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>
contrib/hooks/post-receive-email | patch | blob | history |
index cbbd02fadd753215b3477c178b74d79a59424ee7..28a06c7f381f9386c6f715e6c3ab89f361d12bc2 100644 (file)
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