commit | a8e98a6962727969da9faa12658596c8b1a14baf | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Mon Feb 02 16:17:02 2009 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Mon Feb 02 16:17:02 2009 -0800 |
tree | 4666a12620fdc276f619714a88fc32d73bd49919 | |
parent | b54a392c9a267a06058b663377282c9dcec6878e [diff] |
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>