Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #415 - branch names mangled by color escapes
- add "-c color.branch=never" option to git branch commands, definitively disabling color branch output .# Discussion Branch names are mis-parsed if `git branch` output is colored (eg, when git is configured with "config.branch=always"). Using the base "-c color.branch=never" option overrides any user configuration, displaying git branch output as uncolored in all cases and fixing the issue. Notably, option ordering is important in this instance. The "-c ..." option is a git base option, not a git branch subcommand option. So, as done here, it must be inserted before the "branch" subcommand. ref: Issue #415
- Loading branch information