post-receive: Print commits in top-down chronological order

(imported from commit 952c4e0d4488cd41a02d75bc890fceacbb9f6273)
This commit is contained in:
Keegan McAllister 2012-10-03 18:07:35 -04:00
parent ed8042da73
commit 3848d79f10
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def process_push(oldrev, newrev, refname):
subprocess.check_call(["ssh", "app.humbughq.com", "--", "env", "-u", "GIT_DIR",
"/home/humbug/humbug/tools/update-deployment",
oldrev, newrev, refname])
commits = subprocess.check_output(["git", "log", "--pretty=- %s", "%s..%s" % (oldrev, newrev)])
commits = subprocess.check_output(["git", "log", "--reverse", "--pretty=- %s", "%s..%s" % (oldrev, newrev)])
message_data = {
"type": "class",
"class": "devel",