Avoid publishing empty branches

Refs that point to the empty commit should not be synced in push/pull

This should help with #679