Download a remote git repository as a tar file or exploded directory