Pivot to handle presence or absence of commit SHA.