[gtk/ebassi/style-check: 87/87] ci: Fix the git usage in scripts




commit 4b5ed886ce9ab89a38f5d183d166d05a1a9d7c08
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 9 19:03:43 2022 -0400

    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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]