From: vados-dev Date: Wed, 15 Apr 2026 12:24:25 +0000 (+0300) Subject: Autocommit in repo: Mikrotiks, generated by owner: mikro_bak, in 15:24:25 15.04.2026. X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=68a7630f5143270747fce13c4800041940d118a9;p=Mikrotiks%2FMikrotiks.git Autocommit in repo: Mikrotiks, generated by owner: mikro_bak, in 15:24:25 15.04.2026. --- 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