Base upstrem tag detecion on rev-list

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-01-22 21:52:18 +01:00
parent e80a7731c9
commit f1ef4baf85
No known key found for this signature in database
GPG key ID: 4CDA6F249DD2B485

View file

@ -49,7 +49,8 @@ GitCheckUpdateAvail() {
# get the latest local tag
LOCAL=$(git describe --abbrev=0 --tags master)
# get the latest tag from remote
REMOTE=$(git describe --abbrev=0 --tags origin/master)
# we can't use "git describe --abbrev=0 --tags origin/master" here because it is not supported on older git versions
REMOTE=$(git describe --tags $(git rev-list --tags -1))
else
# @ alone is a shortcut for HEAD. Older versions of git