summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-19 07:50:24 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-19 07:50:24 +0100
commit5b8928c7c9bc3916f67f377f47d6f87039df179f (patch)
tree4f56070873b0edb283a1ffc47d9d0d9d44c6a857 /include
parent71baf65351ff93ef3d6177ae274d7c1d62727035 (diff)
git.sh: remove fetch_from_upstream()
the function is very small and only called once, from fetch_project_trees() merge it into fetch_project_trees() Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/git.sh b/include/git.sh
index bc818b19..5111d09a 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -7,7 +7,8 @@ eval "$(setvars "" _target rev _xm loc url bkup_url depend tree_depend xtree)"
fetch_project_trees()
{
_target="${target}"
- [ -d "src/${project}/${project}" ] || fetch_from_upstream
+ [ ! -d "src/${project}/${project}" ] && x_ mkdir -p "src/${project}" \
+ && fetch_project_repo "${project}"
fetch_config
if [ -d "src/${project}/${tree}" ]; then
printf "download/%s %s (%s): exists\n" \
@@ -17,14 +18,6 @@ fetch_project_trees()
prepare_new_tree
}
-fetch_from_upstream()
-{
- [ -d "src/${project}/${project}" ] && return 0
-
- x_ mkdir -p "src/${project}"
- fetch_project_repo "${project}"
-}
-
fetch_config()
{
rm -f "${cfgsdir}/"*/seen || $err "fetch_config ${cfgsdir}: !rm seen"