-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
9.0.1
-
Severity 2 - Major
-
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
Not reproducible with current Bamboo and git 2.38.1