Changeset 7af57d2e for git-version.sh


Ignore:
Timestamp:
10/13/2021 11:30:53 AM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.1, 11.1-rc1, arm, multilib, trunk, xry111/clfs-ng, xry111/lfs-next
Children:
64ce287
Parents:
3d7b4f6
Message:

git-version: remove -g{sha} unconditionally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version.sh

    r3d7b4f6 r7af57d2e  
    4949
    5050sha="$(git describe --abbrev=1)"
    51 if [ "$(git branch --show-current)" = "trunk" ]; then
    52         sha=$(echo "$sha" | sed 's/-g[^-]*$//')
    53 fi
    54 version="$sha"
    55 versiond="$sha-systemd"
     51rev=$(echo "$sha" | sed 's/-g[^-]*$//')
     52version="$rev"
     53versiond="$rev-systemd"
    5654
    5755if [ "$(git diff HEAD | wc -l)" != "0" ]; then
Note: See TracChangeset for help on using the changeset viewer.