summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/git.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git.sh b/include/git.sh
index ff8b0d97..44afd487 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -100,6 +100,7 @@ fetch_submodule()
tmpclone()
{
+ [ $# -lt 6 ] || rm -Rf "$3" || $err "git retry: !rm $3 ($1)"
repodir="repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3"
x_ mkdir -p "repo"
if [ -d "$repodir" ] && [ $# -lt 6 ]; then