Skip to content
Browse files

Use --no-color when checking the git branch.

Add --no-color when checking the git branch to fix and issue when
users have "branch = always" in their .gitconfig file.  This was
causing color escape sequences to show up in the branch string
in version.cpp.

Thanks to Bill Meek for tracking down the issue which manifested
itself in the theme chooser not being able to download themes
for some users running master.
  • Loading branch information
cpinkham committed Jan 19, 2011
1 parent dcea2ab commit 68d6eb239dd7bb950e72401643ee881fc5b327ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/
@@ -31,7 +31,7 @@ case "${SOURCE_VERSION}" in
BRANCH=$(git branch | sed -e '/^[^\*]/d' -e 's/^\* //' -e 's/(no branch)/exported/')
BRANCH=$(git branch --no-color | sed -e '/^[^\*]/d' -e 's/^\* //' -e 's/(no branch)/exported/')

0 comments on commit 68d6eb2

Please sign in to comment.
You can’t perform that action at this time.