Adding a check for the git toggling flag so that it doesn't override the user's value