mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 22:07:15 +08:00
git-version: remove sha unconditionally
Like LFS.
This commit is contained in:
parent
c99889d95e
commit
8025137e7c
@ -32,10 +32,7 @@ esac
|
||||
full_date="$month $day$suffix, $year"
|
||||
|
||||
sha="$(git describe --abbrev=1)"
|
||||
if git describe --all --match trunk > /dev/null 2> /dev/null; then
|
||||
sha=$(echo "$sha" | sed 's/-g[^-]*$//')
|
||||
fi
|
||||
version="$sha"
|
||||
version=$(echo "$sha" | sed 's/-g[^-]*$//')
|
||||
|
||||
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
|
||||
version="$version+"
|
||||
|
Loading…
Reference in New Issue
Block a user