Add compat test for git ls-remote

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>