git.sh: short git_prep command in fetch_targets()

loc is already set, and will correspond to the same
path, so we can quite conveniently use it.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-30 17:02:44 +01:00 committed by Leah Rowe
parent 4a152d53c3
commit 7aad37199c
1 changed files with 3 additions and 2 deletions

View File

@ -11,9 +11,10 @@ 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 "src/$project/$project" "src/$project/$project" \
"$PWD/$cfgsdir/$tree/patches" "src/$project/$tree" "update"
git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \
"${loc%/*}/$tree" u
nuke "$project/$tree" "$project/$tree"
}