git.sh: also reset xtree/tree_depend here

it's still necessary here, to prevent the same bug
identified in the previous patch.

Signed-off-by: Leah Rowe <leah@libreboot.org>
9020vga
Leah Rowe 2024-01-26 11:15:23 +00:00
parent 39688ebee6
commit 9071160c7a
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ fetch_from_upstream()
fetch_config() fetch_config()
{ {
rm -f "${cfgsdir}/"*/seen || err "fetch_config ${cfgsdir}: !rm seen" rm -f "${cfgsdir}/"*/seen || err "fetch_config ${cfgsdir}: !rm seen"
eval "$(setvars "" xtree tree_depend)"
while true; do while true; do
eval "$(setvars "" rev tree)" eval "$(setvars "" rev tree)"
_xm="fetch_config ${project}/${_target}" _xm="fetch_config ${project}/${_target}"
@ -62,6 +63,8 @@ prepare_new_tree()
fetch_project_repo() fetch_project_repo()
{ {
eval "$(setvars "" xtree tree_depend)"
scan_config "${project}" "config/git" "err" scan_config "${project}" "config/git" "err"
[ -z "${loc+x}" ] && err "fetch_project_repo $project: loc not set" [ -z "${loc+x}" ] && err "fetch_project_repo $project: loc not set"
[ -z "${url+x}" ] && err "fetch_project_repo $project: url not set" [ -z "${url+x}" ] && err "fetch_project_repo $project: url not set"