Merge pull request #133 from labeneko/fixed-unsafe-repository

Fixed unsafe repository
This commit is contained in:
Gaurav Nelson 2022-04-20 10:36:20 +10:00 committed by GitHub
commit 48954f3f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,9 @@ fi
if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
echo -e "${BLUE}BASE_BRANCH: $7${NC}"
git config --global --add safe.directory $(pwd)
git fetch origin "${BASE_BRANCH}" --depth=1 > /dev/null
MASTER_HASH=$(git rev-parse origin/"${BASE_BRANCH}")