From 160bf44c9b5bfa6410a74ed7f396de29c151b129 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 26 Apr 2022 10:12:03 -0400 Subject: [PATCH] doc: fix out-of-tree build from git --- doc/asciidoc-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/asciidoc-helper.sh b/doc/asciidoc-helper.sh index 98e216e68a..a3e2f8f9bf 100755 --- a/doc/asciidoc-helper.sh +++ b/doc/asciidoc-helper.sh @@ -12,7 +12,7 @@ if [ $# != 3 ]; then exit 1 fi -SOURCE_DATE_EPOCH="$(git show --no-patch --format='%ct')" +SOURCE_DATE_EPOCH="$(git -C "$(dirname "$0")" show --no-patch --format='%ct')" export SOURCE_DATE_EPOCH output=$3