From 7aad37199c11f3cb76c29372b34089960861f6e2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 30 Jun 2024 17:02:44 +0100 Subject: [PATCH] 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 --- include/git.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/git.sh b/include/git.sh index 4cd70f2..6dbc2a8 100755 --- a/include/git.sh +++ b/include/git.sh @@ -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" }