Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2876

color control code is output when getting the git branch name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • any
    • 2.3
    • Build Infrastructure
    • None

    Description

      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`.

      Attachments

        Issue Links

          Activity

            People

              Wenjun Zhu Wenjun Zhu
              Wenjun Zhu Wenjun Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: