mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +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"
|
full_date="$month $day$suffix, $year"
|
||||||
|
|
||||||
sha="$(git describe --abbrev=1)"
|
sha="$(git describe --abbrev=1)"
|
||||||
if [ "$(git branch --show-current)" = "trunk" ]; then
|
rev=$(echo "$sha" | sed 's/-g[^-]*$//')
|
||||||
sha=$(echo "$sha" | sed 's/-g[^-]*$//')
|
version="$rev"
|
||||||
fi
|
versiond="$rev-systemd"
|
||||||
version="$sha"
|
|
||||||
versiond="$sha-systemd"
|
|
||||||
|
|
||||||
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
|
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
|
||||||
version="$version+"
|
version="$version+"
|
||||||
|
Loading…
Reference in New Issue
Block a user