[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests/lcitool: Allow lcitool-refresh in out-of-tree builds, too

From: Thomas Huth
Subject: [PATCH] tests/lcitool: Allow lcitool-refresh in out-of-tree builds, too
Date: Tue, 1 Feb 2022 09:55:54 +0100

When running "make lcitool-refresh" in an out-of-tree build, it
currently fails with an error message from git like this:

 fatal: not a git repository (or any parent up to mount point /)
 Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Fix it by changing to the source directory first before updating
the submodule.

Signed-off-by: Thomas Huth <thuth@redhat.com>
 tests/lcitool/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/lcitool/Makefile.include b/tests/lcitool/Makefile.include
index cff7c0b814..6b215adcd1 100644
--- a/tests/lcitool/Makefile.include
+++ b/tests/lcitool/Makefile.include
@@ -13,5 +13,5 @@ lcitool:
 lcitool-help: lcitool
-       $(call quiet-command, git submodule update --init 
+       $(call quiet-command, cd $(SRC_PATH) && git submodule update --init 
        $(call quiet-command, $(LCITOOL_REFRESH))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]