From 1ba1b8784fcde40d6eb9a9cca157454c9f8d2db3 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 22 Oct 2020 12:17:40 -0700 Subject: [PATCH] Fix build outside of a git repo. (#551) Change-Id: Idc8b1428afeaa37140d1278ee4824c29157b0061 Signed-off-by: Tim Newsome --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index fcfd554c2..36f6c4f89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -121,8 +121,10 @@ distclean-local: # Travis, because it automatically makes temporary commits when merging. So # instead we have a hook that enforces this in each workspace. To make sure # that users actually use those hooks, we point git at them here. +# If git fails for some reason, that's OK. It's probably because somebody is +# building the source completely outside a git repo. all-local: - cd $(srcdir) && git config core.hooksPath ./git-hooks + cd $(srcdir) && git config core.hooksPath ./git-hooks || true DISTCLEANFILES = doxygen.log