adding safe (#2806)

* adding safe

* make a var

* so dumb

* so dumber

* so dumberer

* so dumbererer

* so dumberererer

* both
This commit is contained in:
Lukas Gravley 2022-04-19 15:12:46 -07:00 committed by GitHub
parent 8a14c40fe8
commit cb3c5472d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,8 @@ function BuildFileList() {
# Switch codebase back to the default branch to get a list of all files changed # # Switch codebase back to the default branch to get a list of all files changed #
################################################################################# #################################################################################
SWITCH_CMD=$( 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}" pull --quiet
git -C "${GITHUB_WORKSPACE}" checkout "${DEFAULT_BRANCH}" 2>&1 git -C "${GITHUB_WORKSPACE}" checkout "${DEFAULT_BRANCH}" 2>&1
) )