repo 1.5.1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBJh42cFlMNXpIPXGURAhIVAKCN7d8709Y78AknCQT9DEH3NuFBeACcCOza
DjuPSuwaNoVD7i3UJ1Im9TE=
=+BTr
-----END PGP SIGNATURE-----
Fix color parsing to not crash when user defined colors are set

We didn't use the right Python string methods to parse colors.

  $ git config --global color.status.added yellow

managed to cause a stack trace due to undefined methods trim()
and lowercase().  Instead use strip() and lower().

Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed