diff --git a/build/clean_build.sh b/build/clean_build.sh index 4e531a8dee..ded9869a63 100755 --- a/build/clean_build.sh +++ b/build/clean_build.sh @@ -62,6 +62,8 @@ fi cd "$tc_dir" if [ -d "${tc_volume}/.git" ]; then + # Add the directory in question to git's safe.directory list. + git config --global --add safe.directory '*' # In case the mirrored repo already exists, remove gitignored files git clean -fdX fi