branch: only perform HEAD check for local branches