Simplify branch name in a snapshot.