From 5736f18d83c87579e94e5ff2dafc85a521280b9d Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Wed, 30 May 2018 10:22:12 -0500 Subject: [PATCH] test/unit: run submodule command from base git directory This fixes the following error with an older version of git (1.8.3.1): make -C test/unit make[1]: Entering directory `/root/kpatch/test/unit' git submodule update --init --rebase You need to run this command from the toplevel of the working tree. Signed-off-by: Josh Poimboeuf --- test/unit/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/Makefile b/test/unit/Makefile index c4e5c5d2e..6ed710a68 100644 --- a/test/unit/Makefile +++ b/test/unit/Makefile @@ -4,7 +4,7 @@ OBJDIR ?= objs/$(ARCH) .PHONY: all clean all: Makefile.include - git submodule update --init --rebase + cd $(shell git rev-parse --show-toplevel) && git submodule update --init --rebase $(MAKE) -C $(OBJDIR) clean: Makefile.include