summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 17:04:24 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 17:04:24 +0100
commit5ba0433b5fadb36e8eadec8382d2750b4e912a2c (patch)
tree42e118c39b1ba79f947f58ebeb2e27a7a058f889 /include
parent4772186b19fe4bdf412bb3364b9358d5f59eff55 (diff)
git.sh: condense fetch_targets() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/git.sh b/include/git.sh
index 6dbc2a85..a832030a 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -11,11 +11,9 @@ 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 "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \
- "${loc%/*}/$tree" u
- nuke "$project/$tree" "$project/$tree"
+ "${loc%/*}/$tree" u; nuke "$project/$tree" "$project/$tree"
}
fetch_project()