git.sh: merge prepare_new_tree with fetch_targets

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-30 15:49:35 +01:00
parent f937a1142d
commit 017fd8259e
1 changed files with 1 additions and 5 deletions

View File

@ -9,13 +9,9 @@ fetch_targets()
{
[ -n "$tree_depend" ] && [ "$tree_depend" != "$tree" ] && \
x_ ./update trees -f "$project" "$tree_depend"
e "src/$project/$tree" d || prepare_new_tree; return 0
}
e "src/$project/$tree" d && return 0
prepare_new_tree()
{
printf "Creating %s tree %s\n" "$project" "$tree"
git_prep "src/$project/$project" "src/$project/$project" \
"$PWD/$cfgsdir/$tree/patches" "src/$project/$tree" "update"
nuke "$project/$tree" "$project/$tree"