Moved the initial branch retrievial in the prepareRepo function - refs #16
Refactor: extract method - refs #16