Skip to content

Commit

Permalink
extract: Fix get erofs-utils version number
Browse files Browse the repository at this point in the history
Always sync with https://github.com/hsiangkao/erofs-utils

Signed-off-by: sekaiacg <[email protected]>
  • Loading branch information
sekaiacg committed Jan 26, 2025
1 parent 33e32ed commit e88db1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/get-version-number
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ scm_version()
{
# Check for git and a git repo.
if test -z "$(git rev-parse --show-cdup 2>/dev/null)" &&
head="$(git rev-parse --verify HEAD 2>/dev/null)"; then
#head="$(git rev-parse --verify HEAD 2>/dev/null)"; then
flag="$(git log --pretty=format:'%H' --grep='make: switch cmake')"; then
num="$(git log ${flag}^...HEAD --oneline | wc -l)"
head="$(git rev-parse --verify HEAD~$(echo ${num} | tr -d '\r\n'))"
# If we are at a tagged commit, we ignore it.
if [ -z "$(git describe --exact-match 2>/dev/null)" ]; then
# Add -g and 8 hex chars.
Expand Down

0 comments on commit e88db1b

Please sign in to comment.