Promote repository to a full clone before calculating number of commits in current branch

In version number is determined based on the number of commits in
the current branch so in order for it to be correct
a full Git clone is required.