Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22013

A single apostrophe on a branch name causes Bamboo to fail to perform source code checkout

      Issue Summary

      When a branch name has a single apostrophe, the code checkout fails.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      • Create a branch name such as
      Don't-use-this-branchname
      
      • Run a plan that involves a source code checkout step
      • The git command fails because of an unescaped quote

      Expected Results

      Bamboo should handle ' apostrophe characters in branch names

      Actual Results

      The git command fails because the apostrophe is not escaped, and git is expecting a quote.

      Bamboo attempts to run something similar to this during the source code checkout:

      git log -p --name-only --encoding=UTF-8 --format=[commit_BAM_hash]xxxxx[commit_BAM_author_name]xxxx[... -1 Don't-use-this-branchname ^renovate/configure] failed with code 128. Working directory was ...
      

      Workaround

      Avoid branch names with apostrophes

            [BAM-22013] A single apostrophe on a branch name causes Bamboo to fail to perform source code checkout

            Michael Knight made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 720012 ]
            Jyothi Charupalli made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 718661 ]
            Jyothi Charupalli made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 718661 ]
            Marcin Gardias made changes -
            Fix Version/s New: 9.1.0 [ 102591 ]
            Marcin Gardias made changes -
            Resolution New: Cannot Reproduce [ 5 ]
            Status Original: Long Term Backlog [ 12073 ] New: Closed [ 6 ]

            Marcin Gardias added a comment - - edited

            Not reproducible with current Bamboo and git 2.38.1

            Marcin Gardias added a comment - - edited Not reproducible with current Bamboo and git 2.38.1
            Michael Knight made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 709716 ]
            Jan Majkutewicz (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Long Term Backlog [ 12073 ]
            Michael Knight made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 706193 ]
            Michael Knight made changes -
            Description Original: h3. Issue Summary
            When a branch name has a single apostrophe, the code checkout fails.


            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce
            * Create a branch name such as

            {code}
            Don't-use-this-branchname
            {code}

            * Run a plan that involves a source code checkout step
            * The git command fails because of an unescaped quote
            h3. Expected Results
            Bamboo should handle ' apostrophe characters in branch names

            h3. Actual Results
            The git command fails because the apostrophe is not escaped, and git is expecting a quote.

            Bamboo attempts to run something similar to this during the source code checkout:
            {code}
            git log -p --name-only --encoding=UTF-8 --format=[commit_BAM_hash]xxxxx[commit_BAM_author_name]xxxx[... -1 Don't-use-this-branchname ^renovate/configure] failed with code 128. Working directory was ...
            {code}

            h3. Workaround
            Avoid branch names with apostrophes
            New: h3. Issue Summary
            When a branch name has a single apostrophe, the code checkout fails.


            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce
            * Create a branch name such as

            {code}
            Don't-use-this-branchname
            {code}

            * Run a plan that involves a source code checkout step
            * The git command fails because of an unescaped quote

            h3. Expected Results
            Bamboo should handle ' apostrophe characters in branch names

            h3. Actual Results
            The git command fails because the apostrophe is not escaped, and git is expecting a quote.

            Bamboo attempts to run something similar to this during the source code checkout:
            {code}
            git log -p --name-only --encoding=UTF-8 --format=[commit_BAM_hash]xxxxx[commit_BAM_author_name]xxxx[... -1 Don't-use-this-branchname ^renovate/configure] failed with code 128. Working directory was ...
            {code}

            h3. Workaround
            Avoid branch names with apostrophes

              Unassigned Unassigned
              7f0ad53b5538 Jackson
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: