Skip to content

Commit 7967584

Browse files
committed
Switch to git log -1 --format='%H'
1 parent b512222 commit 7967584

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
@@ -209,7 +209,7 @@ export default class Git {
209209

210210
async getLastCommitSha() {
211211
this.lastCommitSha = await execCmd(
212-
`git rev-parse HEAD`,
212+
`git log -1 --format='%H'`,
213213
this.workingDir
214214
)
215215
}

0 commit comments

Comments
 (0)