From 017fd8259eddcfd758cce0a1a4bb1667ba1020ed Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 30 Jun 2024 15:49:35 +0100 Subject: git.sh: merge prepare_new_tree with fetch_targets Signed-off-by: Leah Rowe --- include/git.sh | 6 +----- 1 file changed, 1 insertion(+), 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" -- cgit v1.2.1