git.sh: condense fetch_targets() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-30 17:04:24 +01:00 committed by Leah Rowe
parent 7aad37199c
commit 63ae4ad746
1 changed files with 1 additions and 3 deletions

View File

@ -11,11 +11,9 @@ fetch_targets()
x_ ./update trees -f "$project" "$tree_depend" x_ ./update trees -f "$project" "$tree_depend"
e "src/$project/$tree" d && return 0 e "src/$project/$tree" d && return 0
printf "Creating %s tree %s\n" "$project" "$tree" printf "Creating %s tree %s\n" "$project" "$tree"
git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \ git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \
"${loc%/*}/$tree" u "${loc%/*}/$tree" u; nuke "$project/$tree" "$project/$tree"
nuke "$project/$tree" "$project/$tree"
} }
fetch_project() fetch_project()