From 00e00a18d0a04a024fe909dbf452f25e5d272776 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 19 May 2024 23:04:37 +0100 Subject: git.sh: don't delete .git if src/project/project otherwise, "./update release" will epicly fail Signed-off-by: Leah Rowe --- include/git.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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" -- cgit v1.2.1