\r
switch (command.type) {\r
case ReceiveCommand.Type.CREATE:\r
- def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)\r
+ def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()\r
commitCount += commits.size()\r
if (commits.size() > 0) {\r
// new branch\r
}\r
break\r
case ReceiveCommand.Type.UPDATE:\r
- def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)\r
+ def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()\r
commitCount += commits.size()\r
// fast-forward branch commits table\r
changes += "$branchBreak $ref branch updated ($commits.size commits)\n$branchBreak"\r
changes += '\n'\r
break\r
case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:\r
- def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)\r
+ def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()\r
commitCount += commits.size()\r
// non-fast-forward branch commits table\r
changes += "$branchBreak $ref branch updated [NON fast-forward] ($commits.size commits)\n$branchBreak"\r