]> git.lttng.org Git - lttng-ci.git/commitdiff
jjb: Skip gerrit lttng-modules checkouts for non-root users
authorKienan Stewart <kstewart@efficios.com>
Tue, 9 Jul 2024 13:19:39 +0000 (09:19 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 9 Jul 2024 13:19:39 +0000 (09:19 -0400)
Change-Id: I9e43b7f944e145705ad592b65eefab466902ac22
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/lttng-tools/gerrit-depends-on.sh

index e568578a3c99e2fc05e573fce8758c744058cb2d..5b55c82672f2edc8838914f919a1e676aa8bc12f 100755 (executable)
@@ -59,6 +59,9 @@ git rev-list --format=%B --max-count=1 HEAD | while read -r line; do
     fi
 
     if [ "$project" = "lttng-modules" ]; then
+        if [ "$(id -u)" != "0" ]; then
+            continue
+        fi
         if [ -d "$WORKSPACE/src/lttng-modules" ]; then
             # Remove the regular modules sources to replace them with those
             # from the gerrit change
This page took 0.026427 seconds and 4 git commands to generate.