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...
1 parent dcea2ab commit 68d6eb239dd7bb950e72401643ee881fc5b327ee @cpinkham cpinkham committed Jan 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/version.sh
View
2 mythtv/version.sh
@@ -31,7 +31,7 @@ case "${SOURCE_VERSION}" in
fi
;;
*)
- 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/')
;;
esac

0 comments on commit 68d6eb2

Please sign in to comment.
Something went wrong with that request. Please try again.