From 0ba48e0fca72c13f1ea79f5250700a28fff66598 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 27 Jul 2012 15:34:45 +0530 Subject: [PATCH] Support local paths that are not git repos :cake:. We force the `--no-local-clone` argument to `-bundle` command, when the given repo url is an absolute local path and it is *not* a git repo. It doesn't make sense to clone something which is not a repo! --- antigen.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 5c3d355..6686da8 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -69,7 +69,7 @@ antigen-bundle () { # a local clone made. If the url is a local absolute path and no_local_clone # is true, then and only then, there should be no cloning taking place. local make_local_clone=true - if [[ $url == /* && $no_local_clone == true ]]; then + if [[ $url == /* && ( $no_local_clone == true || ! -d $url/.git ) ]]; then make_local_clone=false fi -- 2.0.0