From 11c9349c580cca57fe6027c357b79c25f3e7629f Mon Sep 17 00:00:00 2001 From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Wed, 15 Apr 2026 14:56:52 +0300 Subject: [PATCH] makefile: remove /dev/null redirections in git metadata vars --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 49bd3bb..ff4cf7c 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,12 @@ SHELL := /bin/bash include ../.config/config.mk COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1) -# `2>/dev/null` suppress errors and `|| true` suppress the error codes. -TAG := $(shell git describe --abbrev=0 --tags ${COMM_TAG} 2>/dev/null || true) +# Keep non-fatal behavior without relying on /dev/null permissions. +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 -COMM_HASH := $(shell git rev-parse --short=8 HEAD 2>/dev/null) # Get short commit hash +COMM_HASH := $(shell git rev-parse --short=8 HEAD || true) # Get short commit hash #COMMIT := $(shell git rev-parse --short HEAD) # get the latest commit date in the form of YYYYmmddHHMM ($(DTSTAMP_FMT)) COMM_DATE := $(shell git log -1 --format=%cd --date=format:$(DTSTAMP_FMT)) -- 2.52.0