You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Wenjun Zhu (JIRA)" <ji...@apache.org> on 2018/01/04 01:58:00 UTC
[jira] [Created] (TRAFODION-2876) color control code is output when
getting the git branch name
Wenjun Zhu created TRAFODION-2876:
-------------------------------------
Summary: 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
(v6.4.14#64029)