summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 15:49:35 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 15:49:35 +0100
commit017fd8259eddcfd758cce0a1a4bb1667ba1020ed (patch)
tree879072df5dbaca679e164e4c2b105e64d2a77d9d /include
parentf937a1142d1761072b4cb9314e0db697f26cc544 (diff)
git.sh: merge prepare_new_tree with fetch_targets
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/git.sh b/include/git.sh
index 08a1d449..4cd70f29 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -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"