{"thread":{"id":"10348","subject":"[PATCH] fixing output of non-fast-forward output of post-receive-email","startedAt":"2007-10-17T22:27:51Z","lastAt":"2007-10-17T22:27:51Z","messageCount":1,"participants":["Robert Schiele"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"56302","messageId":"20071017222751.GC7672@schiele.dyndns.org","threadId":"10348","inReplyTo":null,"subject":"[PATCH] fixing output of non-fast-forward output of post-receive-email","fromName":"Robert Schiele","fromEmail":"rschiele@gmail.com","sentAt":"2007-10-17T22:27:51Z","receivedAt":"2007-10-17T22:27:51Z","isPatch":true,"sender":{"key":"rschiele@gmail.com","avatar":"https://gravatar.com/avatar/409473567eb2287d5f0157b51f5b703994b347f24f92172e3a0588741c27a492?d=mp&s=160"},"body":"post-receive-email has one place where the variable fast_forward is not\nspelled correctly.  At the same place the logic was reversed.  The\ncombination of both bugs made the script work correctly for fast-forward\ncommits but not for non-fast-forward ones.  This change fixes this to\nbe correct in both cases.\n\nSigned-off-by: Robert Schiele <rschiele@gmail.com>\n---\n contrib/hooks/post-receive-email |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email\nindex cbbd02f..28a06c7 100644\n--- a/contrib/hooks/post-receive-email\n+++ b/contrib/hooks/post-receive-email\n@@ -323,7 +323,7 @@ generate_update_branch_email()\n \t\techo \"       via  $rev ($revtype)\"\n \tdone\n \n-\tif [ -z \"$fastforward\" ]; then\n+\tif [ \"$fast_forward\" ]; then\n \t\techo \"      from  $oldrev ($oldrev_type)\"\n \telse\n \t\t#  1. Existing revisions were removed.  In this case newrev is a\n-- \n1.5.2.4\n"}]}