Commit 762c874
authored
fix(action.yml): shorten git_commit_hash to 7 characters (#243)
The builder uses `git log --pretty=format:'%h' -n 1`. The `%h`
placeholder in Git's pretty format outputs the abbreviated commit hash.
By default, [Git determines the abbreviation length dynamically for the
repository](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreabbrev),
defaulting/minimum of 7 characters.
To maintain a consistent abbrv length (e.g., 7 characters), we can
explicitly set the length in our command.
`git log --pretty=format:'%h' -n 1 --abbrev=7`1 parent 2fa117a commit 762c874
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments