[Git] Delete checkout directory if the URL is invalid.