From 2ddece4eeeb09a1172a5ab06a4276c328d6fc7d4 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Mon, 6 May 2024 09:01:36 -0500 Subject: [PATCH] Revert git.js changes --- src/git.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git.js b/src/git.js index 0cff3b6..26869b5 100644 --- a/src/git.js +++ b/src/git.js @@ -122,7 +122,7 @@ export default class Git { async getBaseBranch() { this.baseBranch = await execCmd( - `git branch --show-current`, + `git rev-parse --abbrev-ref HEAD`, this.workingDir ) } @@ -201,7 +201,7 @@ export default class Git { async getLastCommitSha() { this.lastCommitSha = await execCmd( - `git log -1 --format='%H'`, + `git rev-parse HEAD`, this.workingDir ) } @@ -547,4 +547,4 @@ export default class Git { }) this.lastCommitSha = request.data.sha } -} +} \ No newline at end of file