[docs] Fix Git Invocation for Google Cloud
The Google Cloud docs builder does not manage to get file versions
because it has to cross a filesystem boundary when attempting to find
the git directory for the repository.
This change ensures that git starts in the right working directory,
regardless of where doxygen is invoked from.
Signed-off-by: Sam Elliott <selliott@lowrisc.org>
diff --git a/util/doxygen/Doxyfile b/util/doxygen/Doxyfile
index edb8642..8cd5693 100644
--- a/util/doxygen/Doxyfile
+++ b/util/doxygen/Doxyfile
@@ -44,7 +44,7 @@
SHOW_USED_FILES = NO
SHOW_NAMESPACES = NO
-FILE_VERSION_FILTER = "git log --format='%h' -1 --"
+FILE_VERSION_FILTER = "git -C '$(SRCTREE_TOP)' log --format='%h' -1 --"
LAYOUT_FILE = "$(SRCTREE_TOP)/site/docs/doxygen/layout.xml"