]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
.gitlab-ci-main.yml: Add safe.directory '*'
authorPavel Filipenský <pfilipensky@samba.org>
Thu, 4 Jul 2024 09:08:03 +0000 (11:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 10 Jul 2024 10:35:00 +0000 (10:35 +0000)
This is to fix the error when pushing to personal gitlab repo:

2024-07-04 08:16:05,460 Running: 'git clone --recursive --shared /builds/pfilipen/samba /builds/samba-testbase/master' in '/builds/pfilipen/samba'
Cloning into '/builds/samba-testbase/master'...
fatal: detected dubious ownership in repository at '/builds/pfilipen/samba/.git'
To add an exception for this directory, call:
git config --global --add safe.directory /builds/pfilipen/samba/.git
fatal: Could not read from remote repository.

Instead of adding more and more explicit repositories
we should just allow any, we're in an isolated environment...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15660

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 10 10:35:00 UTC 2024 on atb-devel-224

.gitlab-ci-main.yml

index c70d9a6af41a76bb09e7a9bca36bb772a9ddd488..acca9e0754b087a04ea2bd4b6b9613ed190729ca 100644 (file)
@@ -146,9 +146,7 @@ include:
     - ccache -z -M 500M
     - ccache -s
       # We are already running .gitlab-ci directives from this repo, remove additional checks that break our CI
-    - git config --global --add safe.directory `pwd`
-    - git config --global --add safe.directory /builds/samba-team/devel/samba/.git
-    - git config --global --add safe.directory /builds/samba-team/samba/.git
+    - git config --global --add safe.directory '*'
   after_script:
     - mount
     - df -h