added some logging and fixed bug for single-branch mirrors