Commit 0ba48e0fca72c13f1ea79f5250700a28fff66598
1 parent
8a80d2b7a5
Support local paths that are not git repos
.
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!
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -69,7 +69,7 @@ antigen-bundle () { |
69 | 69 | # a local clone made. If the url is a local absolute path and no_local_clone |
70 | 70 | # is true, then and only then, there should be no cloning taking place. |
71 | 71 | local make_local_clone=true |
72 | - if [[ $url == /* && $no_local_clone == true ]]; then | |
72 | + if [[ $url == /* && ( $no_local_clone == true || ! -d $url/.git ) ]]; then | |
73 | 73 | make_local_clone=false |
74 | 74 | fi |
75 | 75 |