Repository: trafodion Updated Branches: refs/heads/master 7a5f3885d -> 33325b65c
[TRAFODION-2876] suppress the output of color control code from command `git branch` Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/cc6292ba Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/cc6292ba Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/cc6292ba Branch: refs/heads/master Commit: cc6292ba4a10f43f65a18a6bb1344bb4e39ab526 Parents: 6be0b22 Author: wenjun.zhu <[email protected]> Authored: Thu Jan 4 11:41:28 2018 +0800 Committer: wenjun.zhu <[email protected]> Committed: Thu Jan 4 11:41:28 2018 +0800 ---------------------------------------------------------------------- core/sqf/build-scripts/build.branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/cc6292ba/core/sqf/build-scripts/build.branch ---------------------------------------------------------------------- diff --git a/core/sqf/build-scripts/build.branch b/core/sqf/build-scripts/build.branch index 463475e..4b508cc 100755 --- a/core/sqf/build-scripts/build.branch +++ b/core/sqf/build-scripts/build.branch @@ -47,7 +47,7 @@ if [[ "$USE_GIT" == "1" ]];then # runs make with a detached HEAD then change the space in "(no branch)" # to an underscore so it can be used. if [ -z "$ZUUL_BRANCH" ]; then - branch=$(git branch | grep '^\* ' | sed 's/(no branch)/no_branch/' | awk '{print $2}') + branch=$(git branch --no-color| grep '^\* ' | sed 's/(no branch)/no_branch/' | awk '{print $2}') else branch=$ZUUL_BRANCH; fi
