summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2023-11-08 08:42:34 +0100
committerMarc Cornellà <marc@mcornella.com>2023-11-08 08:42:34 +0100
commitb6bb133f230847ed0b3f9f4e25f2ceb874ca6c91 (patch)
tree8a7e9f3d174dbf65e57e8668d3c22b3edfb5fcdd /plugins
parent632ed413a9ce62747ded83d7736491b081be4b49 (diff)
downloadzsh-b6bb133f230847ed0b3f9f4e25f2ceb874ca6c91.tar.gz
zsh-b6bb133f230847ed0b3f9f4e25f2ceb874ca6c91.tar.bz2
zsh-b6bb133f230847ed0b3f9f4e25f2ceb874ca6c91.zip
fix(git): fix repository detection in `gccd` function (#12023)
Fixes #12023
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/git.plugin.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 6ea1d1177..2a824444b 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -166,6 +166,8 @@ alias gclean='git clean --interactive -d'
alias gcl='git clone --recurse-submodules'
function gccd() {
+ setopt localoptions extendedglob
+
# get repo URI from args based on valid formats: https://git-scm.com/docs/git-clone#URLS
local repo="${${@[(r)(ssh://*|git://*|ftp(s)#://*|http(s)#://*|*@*)(.git/#)#]}:-$_}"