Fixed issue with initial pull from an empty repo