From d60a7622e154458ca9c2625c19e3f4564a63d665 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 5 Feb 2019 02:30:56 -0800 Subject: [PATCH] modules/webhook: Reverse push list order. --- modules/webhook.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/webhook.cc b/modules/webhook.cc index 1c0c7183b..b74c333e0 100644 --- a/modules/webhook.cc +++ b/modules/webhook.cc @@ -294,8 +294,9 @@ github_handle__push(std::ostream &out, out << " (rebase)"; out << "
";
-	for(const json::object &commit : commits)
+	for(ssize_t i(count - 1); i >= 0; --i)
 	{
+		const json::object &commit(commits.at(i));
 		const auto url(unquote(commit["url"]));
 		const auto id(unquote(commit["id"]));
 		const auto sid(id.substr(0, 8));