From 36cb7185642a875e9e81230331cce300a7f1d6d2 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Sun, 3 Jun 2012 13:22:50 +0530 Subject: [PATCH] Fix break if the short url has a `.git` in the end. --- antigen.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 2845fad..b8e309c 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -39,7 +39,7 @@ bundle () { # Resolve the url. if [[ $url != git://* && $url != https://* ]]; then name="$(basename "$url")" - url="https://github.com/$url.git" + url="https://github.com/${url%.git}.git" fi # Plugin's repo will be cloned here. -- 2.0.0