From 68a7630f5143270747fce13c4800041940d118a9 Mon Sep 17 00:00:00 2001 From: vados-dev Date: Wed, 15 Apr 2026 15:24:25 +0300 Subject: [PATCH] Autocommit in repo: Mikrotiks, generated by owner: mikro_bak, in 15:24:25 15.04.2026. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff4cf7c..3769813 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,11 @@ SHELL := /bin/bash include ../.config/config.mk -COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1) +COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1 2>/dev/null || true) +#COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1) # Keep non-fatal behavior without relying on /dev/null permissions. -TAG := $(shell git describe --abbrev=0 --tags ${COMM_TAG} || true) +TAG := $(if $(COMM_TAG),$(shell git describe --abbrev=0 --tags $(COMM_TAG) 2>/dev/null || true),) +#TAG := $(shell git describe --abbrev=0 --tags ${COMM_TAG} || true) # here we strip the version prefix TAG_VERS :=$(TAG:v%=%) # get the latest commit hash in the short form -- 2.52.0