summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-17 13:20:51 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-17 13:20:51 +0100
commit583502027efcd75a1a06a154b609be510d110872 (patch)
tree5b58c7cf00dfda4befbfcde82b0b89dd52f14ef6 /include
parent9f09728acac7e36404cfd8c6b03a38281d47b75b (diff)
git.sh: don't download to src/project/project/
re-use repo/project/ this means that single- and multi-tree projects now have a unified cached git repo location, as per the new rules, thus saving on disk space usage. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/git.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git.sh b/include/git.sh
index 25db40b8..27b79c1a 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -13,7 +13,7 @@ fetch_targets()
printf "Creating %s tree %s\n" "$project" "$tree"
git_prep "$loc" "$loc" "$PWD/$configdir/$tree/patches" \
- "${loc%/*}/$tree" u; nuke "$project/$tree" "$project/$tree"
+ "src/$project/$tree" u; nuke "$project/$tree" "$project/$tree"
}
fetch_project()
@@ -37,7 +37,7 @@ fetch_project()
clone_project()
{
- loc="src/$project/$project" && singletree "$project" && loc="${loc%/*}"
+ loc="repo/$project" && singletree "$project" && loc="src/$project"
printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
e "$loc" d && return 0
@@ -61,7 +61,7 @@ git_prep()
[ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
[ "$xtree" != "$tree" ] && link_crossgcc "$_loc"
- [ "$XBMK_RELEASE" = "y" ] && [ "$_loc" != "src/$project/$project" ] \
+ [ "$XBMK_RELEASE" = "y" ] && [ "$_loc" != "repo/$project" ] \
&& rmgit "$tmpgit"
move_repo "$_loc"