mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-12-27 03:33:50 -05:00
git-version: remove -g{sha} unconditionally
This commit is contained in:
@@ -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+"
|
||||
|
||||
Reference in New Issue
Block a user