mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Fixing changes in Git for unsafe folder (#3695)
This commit is contained in:
@@ -29,6 +29,9 @@ fi
|
||||
|
||||
if [[ -f "${SRC}"/lib/general.sh ]]; then
|
||||
|
||||
# Declare this folder as safe
|
||||
git config --global --add safe.directory "${SRC}"
|
||||
|
||||
# shellcheck source=lib/general.sh
|
||||
source "${SRC}"/lib/general.sh
|
||||
|
||||
|
||||
@@ -484,6 +484,9 @@ fetch_from_repo()
|
||||
local workdir=$dir
|
||||
fi
|
||||
|
||||
# Declare folders we use as safe
|
||||
git config --global --add safe.directory "${SRC}/cache/sources/$workdir"
|
||||
|
||||
mkdir -p "${SRC}/cache/sources/${workdir}" 2>/dev/null || \
|
||||
exit_with_error "No path or no write permission" "${SRC}/cache/sources/${workdir}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user