summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
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"