Skip to content

Commit

Permalink
Merge pull request #25 from map3xyz/arshadm/modify-commit-id-length
Browse files Browse the repository at this point in the history
Modified the commit to be shorter
  • Loading branch information
arshadm authored Aug 15, 2022
2 parents b553443 + 22348e7 commit 1602df1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export async function cloneOrPullRepoAndUpdateSubmodules(
}

export async function getCommitId(dir: string, tag: string = "HEAD"): Promise<string> {
const commitId = (await shell.exec(`cd ${dir}; git rev-parse --short=16 ${tag}`)).stdout.trim();
const commitId = (await shell.exec(`cd ${dir}; git rev-parse --short=8 ${tag}`)).stdout.trim();
return Promise.resolve(commitId);
}

0 comments on commit 1602df1

Please sign in to comment.