From f4c4b37f2277ba93433410333765e447617c1e93 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 24 Dec 2020 21:54:30 -0500 Subject: [PATCH] fixes to info command --- src/commands/info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/info.ts b/src/commands/info.ts index 5d72710..cb455d4 100644 --- a/src/commands/info.ts +++ b/src/commands/info.ts @@ -25,7 +25,7 @@ export default class Info extends Command { embed.addField('Compilers/Transpilers', `TypeScript [tsc] (${tsVersion})`, true); embed.addField('Memory Usage', `${Math.round(process.memoryUsage().rss / 1024 / 1024)} MB / ${Math.round(totalmem() / 1024 / 1024 / 1024)} GB`, true); embed.addField('Repository', 'https://loc.sh/crgit | Licensed under GNU Affero General Public License V3', true); - embed.addField('Branch', await this.client.util.exec('git branch --show-current'), true); + embed.addField('Branch', await this.client.util.exec('git rev-parse --abbrev-ref HEAD'), true); embed.addField('Commit SHA', await this.client.util.exec('git rev-parse --short HEAD'), true); embed.addField('Commit Link', `https://gitlab.libraryofcode.org/engineering/communityrelations/-/commit/${await this.client.util.exec('git rev-parse HEAD')}`, true); embed.setFooter(this.client.user.username, this.client.user.avatarURL);