From 62be45c466ff70cb22278cc64f3a55fdb7dbbf19 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Apr 2020 12:24:15 +0200 Subject: [PATCH] build: luci.mk: fix compatibility with older Git versions Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich --- luci.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci.mk b/luci.mk index 0b3a66e3b..d7a89d9ff 100644 --- a/luci.mk +++ b/luci.mk @@ -64,7 +64,7 @@ PKG_NAME?=$(LUCI_NAME) define findrev $(shell \ if git log -1 >/dev/null 2>/dev/null; then \ - set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- '$(if $(1),:(exclude))po'); \ + set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- $(if $(1),. ':(exclude)po',po)); \ if [ -n "$$1" ]; then secs="$$(($$1 % 86400))"; \ yday="$$(date --utc --date="@$$1" "+%y.%j")"; \ -- 2.25.1