]> 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>
Thu, 11 Jul 2024 13:22:43 +0000 (13:22 +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

(cherry picked from commit 3a21b7d9a4e7e9814d0be8c0ebf72b9821a5dc36)

Autobuild-User(v4-19-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-19-test): Thu Jul 11 13:22:43 UTC 2024 on atb-devel-224

.gitlab-ci-main.yml

index 7493000750e58eef481c20a36af0c56fbff422b0..f7dfe890032f024a47a55e261f4ef5a3920cb0f6 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