Skip to content

Commit

Permalink
fix: typo of git command
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Feb 29, 2024
1 parent 9a3de43 commit fa4c3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const getFirstGitCommit = async () => (await $$`git rev-list --max-parent

export async function getCurrentGitBranch() {
return (await $$`git tag --points-at HEAD`).stdout.trim()
|| (await $$`git rev-par --abbrev-ref HEAD`).stdout.trim()
|| (await $$`git rev-parse --abbrev-ref HEAD`).stdout.trim()
}

export async function getCommitFormatTime(commit: string) {
Expand Down

0 comments on commit fa4c3b8

Please sign in to comment.