From: W Trevor King Date: Wed, 30 Nov 2011 15:19:10 +0000 (-0500) Subject: Git version 1.6.0.4 does not support cloning into existing directorries. X-Git-Tag: v0.3~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=433e4e5e01fdb72a7e8675098b071127fcb8d374;p=dotfiles-framework.git Git version 1.6.0.4 does not support cloning into existing directorries. --- 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