From 433e4e5e01fdb72a7e8675098b071127fcb8d374 Mon Sep 17 00:00:00 2001 From: W Trevor King Date: Wed, 30 Nov 2011 10:19:10 -0500 Subject: [PATCH] Git version 1.6.0.4 does not support cloning into existing directorries. --- dotfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles.sh b/dotfiles.sh index 45c3f97..5927dab 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -253,7 +253,6 @@ function clone() echo "ERROR: destination path (${REPO}) already exists." >&2 return 1 fi - mkdir -p "${REPO}" CACHE_SOURCE='yes' FETCH='yes' case "${TRANSFER}" in @@ -263,6 +262,7 @@ function clone() "${GIT}" clone "${URL}" "${REPO}" || return 1 ;; 'wget') + mkdir -p "${REPO}" ;; *) echo "PROGRAMMING ERROR: add ${TRANSFER} support to clone command" >&2 -- 2.26.2