Skip to content

Commit 4893f38

Browse files
committed
Switch to git log -1 --format='%H'
1 parent 3e3b0ad commit 4893f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default class Git {
201201

202202
async getLastCommitSha() {
203203
this.lastCommitSha = await execCmd(
204-
`git rev-parse HEAD`,
204+
`git log -1 --format='%H'`,
205205
this.workingDir
206206
)
207207
}

0 commit comments

Comments
 (0)