0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

modules/webhook: Reverse push list order.

This commit is contained in:
Jason Volk 2019-02-05 02:30:56 -08:00
parent d7c68d2fb7
commit d60a7622e1

View file

@ -294,8 +294,9 @@ github_handle__push(std::ostream &out,
out << " (rebase)";
out << "<pre>";
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));