git.sh: condense fetch_targets() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-30 17:04:24 +01:00
parent 4772186b19
commit 5ba0433b5f
1 changed files with 1 additions and 3 deletions

View File

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