From 39bc8a56f55f3f205ae77f047fa0cf41ec936242 Mon Sep 17 00:00:00 2001 From: Abheek D <67982792+ADawesomeguy@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:57:56 -0500 Subject: [PATCH] Attempt to fix gitlog --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index d648249..2865af4 100755 --- a/index.js +++ b/index.js @@ -442,12 +442,10 @@ async function about(action, interaction) { interaction.reply({ embeds: [contributorEmbed] }); } else if (action === "changelog") { - let parentFolder = __dirname.split("/"); - parentFolder.pop(); - parentFolder = parentFolder.join("/"); + const gitRepoLocation = __dirname; const commits = gitlog({ - repo: parentFolder, + repo: gitRepoLocation, number: 5, fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"], });