We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf6c73 commit 2ddece4Copy full SHA for 2ddece4
src/git.js
@@ -122,7 +122,7 @@ export default class Git {
122
123
async getBaseBranch() {
124
this.baseBranch = await execCmd(
125
- `git branch --show-current`,
+ `git rev-parse --abbrev-ref HEAD`,
126
this.workingDir
127
)
128
}
@@ -201,7 +201,7 @@ export default class Git {
201
202
async getLastCommitSha() {
203
this.lastCommitSha = await execCmd(
204
- `git log -1 --format='%H'`,
+ `git rev-parse HEAD`,
205
206
207
@@ -547,4 +547,4 @@ export default class Git {
547
})
548
this.lastCommitSha = request.data.sha
549
550
-}
+}
0 commit comments