summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-19 23:04:37 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-19 23:04:37 +0100
commit00e00a18d0a04a024fe909dbf452f25e5d272776 (patch)
tree601c340a1876a41761c3ca01960a253fcaf3c90a /include/git.sh
parent245b4eb21d10532aab86d9dea722d4986a2a074c (diff)
git.sh: don't delete .git if src/project/project
otherwise, "./update release" will epicly fail Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/git.sh')
-rwxr-xr-xinclude/git.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh
index 5111d09a..d737fd1c 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -104,7 +104,9 @@ git_prep()
fi
fi
- [ "$xbmk_release" = "y" ] && rmgit "$tmpgit"
+ [ "$xbmk_release" = "y" ] && [ "$_loc" != "src/$project/$project" ] \
+ && rmgit "$tmpgit"
+
[ "$_loc" = "${_loc%/*}" ] || x_ mkdir -p "${_loc%/*}"
mv "$tmpgit" "$_loc" || $err "git_prep: !mv $tmpgit $_loc"