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

            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

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

                Created:
                Updated:
                Resolved: