From c16a42bf2b7029bca73a1a472347233e64bedf68 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 8 Jul 2021 12:38:31 +0200 Subject: [PATCH] Fix commit count not being correct --- commands/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/update.js b/commands/update.js index c4e69d0..e664b2b 100644 --- a/commands/update.js +++ b/commands/update.js @@ -22,7 +22,7 @@ module.exports = { cmd = `git log --oneline ${commits}`; exec(cmd, (err, stdout, stderr) =>{ process.stdout.write(stdout) - let commitCount = stdout.split(/\r\n|\r|\n/).length + let commitCount = stdout.split(/\r\n|\r|\n/).length - 1 msg.edit(`${sendText}\n\nLatest commits (${commitCount}):\n${stdout}`) if (err) console.log(stderr) })