Skip to contentSkip to conversation

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

PATCH In review Thomas Huth 4 participants 4 messages Feb 1, 2022

lore
Share & tools
lore
#0 lore raw

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

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.

---
 tests/lcitool/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/lcitool/Makefile.include +1 -1
index cff7c0b814..6b215adcd1 100644
@@ -13,5 +13,5 @@ lcitool:
 lcitool-help: lcitool
 
 lcitool-refresh:
-	$(call quiet-command, git submodule update --init $(SRC_PATH)/tests/lcitool/libvirt-ci)
+	$(call quiet-command, cd $(SRC_PATH) && git submodule update --init tests/lcitool/libvirt-ci)
 	$(call quiet-command, $(LCITOOL_REFRESH))
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Huth

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).

Quoted 7 lines

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

---
 tests/lcitool/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to Thomas Huth
Quoted 10 lines · Thomas Huth

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.

Queued to testing/next, thanks.

Signature · 1 line
Alex Bennée
Reviewed-by Philippe Mathieu-Daudé on v1 1/1
#3 lore raw
In reply to Thomas Huth
Quoted 6 lines · Thomas Huth

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).

Quoted 7 lines

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

---
 tests/lcitool/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)