File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -416,9 +416,15 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
416416 case ${ICE[proto]} in
417417 (|ftp(|s)|git|http(|s)|rsync|ssh)
418418 :zinit-git-clone() {
419+ local clone_url
420+ if [[ ${ICE[proto]} == "ssh" ]]; then
421+ clone_url="git@${site:-${ICE[from]:-github.com}}:$remote_url_path"
422+ else
423+ clone_url="${ICE[proto]:-https}://${site:-${ICE[from]:-github.com}}/$remote_url_path"
424+ fi
419425 command git clone --progress ${(s: :)ICE[cloneopts]---recursive} \
420426 ${(s: :)ICE[depth]:+--depth ${ICE[depth]}} \
421- "${ICE[proto]:-https}://${site:-${ICE[from]:-github.com}}/$remote_url_path " \
427+ "$clone_url " \
422428 "$local_path" \
423429 --config transfer.fsckobjects=false \
424430 --config receive.fsckobjects=false \
You can’t perform that action at this time.
0 commit comments