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

color control code is output when getting the git branch name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: any
    • Fix Version/s: 2.3
    • Component/s: Build Infrastructure
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: