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)
This commit is contained in:
Keegan McAllister 2012-10-18 10:47:28 -04:00
parent be8404e101
commit d0db047035
1 changed files with 1 additions and 1 deletions

View File

@ -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)