From 4b5ed886ce9ab89a38f5d183d166d05a1a9d7c08 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 9 Sep 2022 19:03:43 -0400 Subject: [PATCH] ci: Fix the git usage in scripts Thanks, git. --- .gitlab-ci/run-style-check-diff.sh | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.30.2