Handle HTTP-based git repositories.

Part of https://github.com/nearform/nscale-kernel/pull/57