]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: build.sh: Add GIT_ROOT env helper variable
authorErik Skultety <eskultet@redhat.com>
Fri, 25 Aug 2023 14:12:32 +0000 (16:12 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 08:36:13 +0000 (10:36 +0200)
We'll use this one in many of the job functions future patches will
introduce, it's a neat shortcut to avoid using relative paths.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/build.sh

index 5a9298c4b42196a45442ca09bf4b8312fe54090a..0549b01ca0ec2cd84c4706a8a5a9a80148328d79 100644 (file)
@@ -14,6 +14,8 @@ if ! [ -t 1 ]; then
     export VIR_TEST_DEBUG="1"
 fi
 
+GIT_ROOT="$(git rev-parse --show-toplevel)"
+
 # $MESON_OPTS is an env that can optionally be set in the container,
 # populated at build time from the Dockerfile. A typical use case would
 # be to pass options to trigger cross-compilation