From d0db047035ee4ea0c9a699a495dda690dd2c6df6 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 18 Oct 2012 10:47:28 -0400 Subject: [PATCH] post-receive: Send the bot message before killing the server Otherwise the server isn't running when we try to send. (imported from commit a5ed6ef2111d426c44914c607444dc09b2e33b59) --- tools/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/post-receive b/tools/post-receive index 40495933a2..492394ca94 100755 --- a/tools/post-receive +++ b/tools/post-receive @@ -88,5 +88,5 @@ def send_bot_message(oldrev, newrev, refname): for ln in sys.stdin: oldrev, newrev, refname = ln.strip().split() if refname in ["refs/heads/master", "refs/heads/test-post-receive"]: - update_deployment(oldrev, newrev, refname) send_bot_message(oldrev, newrev, refname) + update_deployment(oldrev, newrev, refname)