Skip to content
Permalink
Branch: master
Commits on Jun 17, 2018
  1. Fixes #415 - branch names mangled by color escapes

    rivy authored and eamodio committed Jun 14, 2018
    - 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
You can’t perform that action at this time.