[nit] Fix check in git config.
[nit] change type from List to Iterable.
Merge pull request #957 from dart-lang/fix_nits_in_checkmode

Fix nits for checkmode