move git clone from daemon to client

Fixes #2715