ci: Fix the git usage in scripts
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Sep 2022 23:03:43 +0000 (19:03 -0400)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 9 Sep 2022 23:16:12 +0000 (00:16 +0100)
Thanks, git.

.gitlab-ci/run-style-check-diff.sh

index b1be379033fd16d87ffaf69d4dde9192670f7466..053423a781ecd73e867c700612b2b17a12bfda85 100755 (executable)
@@ -4,6 +4,9 @@ set -e
 
 ancestor_horizon=31  # days (one month)
 
+# Recently, git is picky about directory ownership. Tell it not to worry.
+git config --global --add safe.directory "$PWD"
+
 # We need to add a new remote for the upstream target branch, since this script
 # could be running in a personal fork of the repository which has out of date
 # branches.