From f1ef4baf85e29fc8abf37927f74a6aa0a047b474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 22 Jan 2022 21:52:18 +0100 Subject: [PATCH] Base upstrem tag detecion on rev-list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- advanced/Scripts/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index d18d2e78..ace7ccbc 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -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