diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-15 12:24:15 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-15 12:44:57 +0200 |
commit | 62be45c466ff70cb22278cc64f3a55fdb7dbbf19 (patch) | |
tree | 3feecedfb1072f2ba54b2b0f5c5083bdfb73ba62 | |
parent | 09a84607508f289488d7185692ed8e9eb66053ac (diff) |
build: luci.mk: fix compatibility with older Git versions
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | luci.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")"; \ |