Skip to content

Commit

Permalink
test/unit: run submodule command from base git directory
Browse files Browse the repository at this point in the history
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 <jpoimboe@redhat.com>
  • Loading branch information
jpoimboe committed May 30, 2018
1 parent ba5f3a9 commit 5736f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 5736f18

Please sign in to comment.