mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-31 04:30:30 +00:00
Base upstrem tag detecion on rev-list
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
e80a7731c9
commit
f1ef4baf85
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue