abiosoft / caddy-git

git middleware for Caddy

Home Page:http://caddyserver.com/docs/http.git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to clone repos with abnormal URLs/Subgroups

riptidewave93 opened this issue · comments

Hello, it seems one of the recent patches to this repo has broke the ability to clone "subgroup" repo paths. For example, I currently use GitLab with groups/subgroups, and I am unable to clone from a subgroup URL.

Config Example:

site.com {
    tls email@domain.com
    root /srv/site.com/
    git {
        repo     git@gitlab.site.com:project/subproject/site.com.git
        key      /root/sshkey.priv
    }
}

Error Message:

caddy-proxy_1     | Cloning into '/srv/site.com'...
caddy-proxy_1     | ssh: Could not resolve hostname gitlab.site.com:project: Name does not resolve
caddy-proxy_1     | fatal: Could not read from remote repository.
caddy-proxy_1     | 
caddy-proxy_1     | Please make sure you have the correct access rights
caddy-proxy_1     | and the repository exists.
caddy-proxy_1     | 2017/08/27 19:39:55 exit status 128

Seems the fix in 184099b may be the cause.

This has been fixed and deployed yesterday. Kindly download it again on caddyserver.com.

@abiosoft thanks for the fast response. I actually use your docker image at https://github.com/abiosoft/caddy-docker. Any chance it will be updated sometime soon to reflect the updated plugin?

Oops. I forgot to rebuild :latest as well. But you can try with :0.10.7.

@abiosoft can confirm the updated image has this fix applied. Closing out this issue. 😄