From 00a120c34fad6fe4a12644c32eecf44646acaaaf Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Sun, 24 Jul 2016 20:05:30 +0530 Subject: [PATCH] Improve a string in tools/post-receive. --- tools/post-receive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/post-receive b/tools/post-receive index 08b4c7b88b..00ff8db6af 100755 --- a/tools/post-receive +++ b/tools/post-receive @@ -67,8 +67,8 @@ for ln in sys.stdin: else: send_deployment_finished_message(branch, "deployment of `%s` failed!" % (newrev[:12],)) - if newrev == '0000000000000000000000000000000000000000': - # 0000000000000000000000000000000000000000 means we're deleting the ref + if newrev == '0'*40: + # 00...0 means we're deleting the ref commits = '' else: commits = subprocess.check_output(["git", "log", "%s..%s" % (oldrev, newrev)])