Fix git:branch bug when there is more than one branch with equal SHA-ID