mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-25 14:12:14 -05:00
adding safe (#2806)
* adding safe * make a var * so dumb * so dumber * so dumberer * so dumbererer * so dumberererer * both
This commit is contained in:
parent
8a14c40fe8
commit
cb3c5472d8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue