From: Matthias Clasen Date: Fri, 9 Sep 2022 23:03:43 +0000 (-0400) Subject: ci: Fix the git usage in scripts X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~2^2~15^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4b5ed886ce9ab89a38f5d183d166d05a1a9d7c08;p=gtk4.git ci: Fix the git usage in scripts Thanks, git. --- diff --git a/.gitlab-ci/run-style-check-diff.sh b/.gitlab-ci/run-style-check-diff.sh index b1be379033..053423a781 100755 --- a/.gitlab-ci/run-style-check-diff.sh +++ b/.gitlab-ci/run-style-check-diff.sh @@ -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.