[ https://issues.apache.org/jira/browse/TRAFODION-2876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenjun Zhu closed TRAFODION-2876. --------------------------------- Resolution: Fixed > color control code is output when getting the git branch name > ------------------------------------------------------------- > > Key: TRAFODION-2876 > URL: https://issues.apache.org/jira/browse/TRAFODION-2876 > Project: Apache Trafodion > Issue Type: Bug > Components: Build Infrastructure > Affects Versions: any > Reporter: Wenjun Zhu > Priority: Minor > Fix For: 2.3 > > > To get the gti branch name in file core/sqf/build-scripts/build.branch, > 50 branch=$(git branch | grep '^\* ' | sed 's/(no branch)/no_branch/' | > awk '{print $2}') > `git branch` is used. > But if the configuration color.ui in git is on, the command `git branch` > output the color control code, like > cd build-scripts && ./genverhdr.ksh -major "2" \ > -minor "3" \ > -update "0" \ > -build "adamas" \ > -flavor "debug" \ > *-funbranch > "89433fb_dh_^[[32mmaster^[[m" \* > *-branch "89433fb_^[[32mmaster^[[m" \* > -date "04Jan18" > this causes some troubles. > So I propose to add a option `--no-color` to `git brunch`. -- This message was sent by Atlassian JIRA (v7.6.3#76005)