From cb3c5472d87b688b3542e1d40b5b1329d30490d2 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 19 Apr 2022 15:12:46 -0700 Subject: [PATCH] adding safe (#2806) * adding safe * make a var * so dumb * so dumber * so dumberer * so dumbererer * so dumberererer * both --- lib/functions/buildFileList.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 4b87b69b..b4d4bed6 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -84,6 +84,8 @@ function BuildFileList() { # Switch codebase back to the default branch to get a list of all files changed # ################################################################################# SWITCH_CMD=$( + git config --global --add safe.directory "${GITHUB_WORKSPACE}" + git config --global --add safe.directory "/tmp/lint" git -C "${GITHUB_WORKSPACE}" pull --quiet git -C "${GITHUB_WORKSPACE}" checkout "${DEFAULT_BRANCH}" 2>&1 )