aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-04-26 10:12:03 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-04-26 10:13:19 -0400
commit160bf44c9b5bfa6410a74ed7f396de29c151b129 (patch)
treed2ae3934e4a18fdb65ce25bbeff50b78ad49a652 /doc
parent616c06c0b2748db163cbb6882043d24fdbaaf335 (diff)
downloadtor-160bf44c9b5bfa6410a74ed7f396de29c151b129.tar.gz
tor-160bf44c9b5bfa6410a74ed7f396de29c151b129.zip
doc: fix out-of-tree build from git
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/asciidoc-helper.sh2
1 files changed, 1 insertions, 1 deletions
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