-
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
[BAM-22013] A single apostrophe on a branch name causes Bamboo to fail to perform source code checkout
Remote Link | New: This issue links to "Page (Confluence)" [ 720012 ] |
Remote Link | Original: This issue links to "Page (Confluence)" [ 718661 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 718661 ] |
Fix Version/s | New: 9.1.0 [ 102591 ] |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Long Term Backlog [ 12073 ] | New: Closed [ 6 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 709716 ] |
Status | Original: Needs Triage [ 10030 ] | New: Long Term Backlog [ 12073 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 706193 ] |
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 |
Not reproducible with current Bamboo and git 2.38.1