Ignore git repositories without any heads

There is no use mirroring an empty git repository.
Only do clone operations when we have something to clone