mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +00:00
git-version: remove -g{sha} unconditionally
This commit is contained in:
parent
3d7b4f686a
commit
7af57d2e6f
@ -48,11 +48,9 @@ esac
|
||||
full_date="$month $day$suffix, $year"
|
||||
|
||||
sha="$(git describe --abbrev=1)"
|
||||
if [ "$(git branch --show-current)" = "trunk" ]; then
|
||||
sha=$(echo "$sha" | sed 's/-g[^-]*$//')
|
||||
fi
|
||||
version="$sha"
|
||||
versiond="$sha-systemd"
|
||||
rev=$(echo "$sha" | sed 's/-g[^-]*$//')
|
||||
version="$rev"
|
||||
versiond="$rev-systemd"
|
||||
|
||||
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
|
||||
version="$version+"
|
||||
|
Loading…
Reference in New Issue
Block a user