move git clone from daemon to client
support ssh url
add compat