From fd8ee949a80e95adfd4236d1641acbc0e7fb0d9e Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 5 Apr 2020 13:02:15 +0200 Subject: [PATCH] Don't commit unless there is data --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index 24f9502a87..b8f73510bf 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -52,7 +52,7 @@ mv-check-env: # we must commit the index before it's made available to multiversion mv-autodoc-index: @sphinx-apidoc -f -o $(SOURCEDIR)/api/ $(EVDIR) - git commit -a -m "Updated API autodoc index." + git diff-index --quiet HEAD || git commit -a -m "Updated API autodoc index." multiversion-build: @EVDIR=$(EVDIR) EVGAMEDIR=$(EVGAMEDIR) sphinx-multiversion "$(SOURCEDIR)" "$(BUILDDIR)/html"