[Version Control] Make the commit command check accurate.