fix(git): fix directory parse from URL in `gccd` (#10276)

pull/10277/head
Luka Markušić 2021-10-09 13:42:17 +02:00 committed by GitHub
parent 07cdd7a539
commit 6ac1ff6905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ alias gcf='git config --list'
function gccd() {
command git clone --recurse-submodules "$@"
[[ -d "$_" ]] && cd "$_" || cd "${${_:h}%.git}"
[[ -d "$_" ]] && cd "$_" || cd "${${_:t}%.git}"
}
compdef _git gccd=git-clone