git.sh: don't delete .git if src/project/project

otherwise, "./update release" will epicly fail

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2024-05-19 23:04:37 +01:00
parent 245b4eb21d
commit 00e00a18d0
1 changed files with 3 additions and 1 deletions

View File

@ -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"