#166 Correction of collection of remote branches for a template definition branch