aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/osmocom-latest-packages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/osmocom-latest-packages.sh')
-rwxr-xr-xscripts/osmocom-latest-packages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index 8fe074c..4783185 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -32,7 +32,7 @@ build() {
[ -d "$1" ] || git clone "git://git.osmocom.org/$1"
cd "$1"
git fetch
- VER=$(git describe --abbrev=0 --tags --match "*.*.*" origin/master)
+ VER=$(git tag -l --sort=v:refname | grep "^[0-9]*.[0-9]*.[0-9]*$" | tail -n 1)
git checkout -f -B "$VER" "refs/tags/$VER"
gbp buildpackage -d -S -uc -us "--git-export-dir=$output" "--git-debian-branch=$VER"