From d9df25f6b53e4a5eba0f2fda1be2b341da7469ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D1=85=D0=B8=D1=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Sun, 23 Jun 2024 20:30:07 +0000 Subject: [PATCH] lib/makeversion: Synchronize to sled's lib/makeversion --- lib/makeversion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/makeversion b/lib/makeversion index 4cde2c1..ae5438a 100755 --- a/lib/makeversion +++ b/lib/makeversion @@ -4,13 +4,13 @@ FALLBACKVER=${FALLBACKVER:-unknown} if [ -d .got ] && command -v got >/dev/null 2>&1; then lastcommit=$(got log | - awk '/^commit/ {print substr($2,1,9); exit}') + awk '/^commit/ {print substr($2,1,7); exit}') got tag -l | awk -v lastcommit="$lastcommit" ' /^object: commit/ { if (!lasttagcom) { - lasttagcom = substr($3,1,9) + lasttagcom = substr($3,1,7) } next } -- 2.45.2