[VersionControl] Simplify commit dialog text check.