Actions
Defect #31120
closedGarbage lines in the output of 'git branch' break git adapter
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
I found that adding an if condition around line 84-89 solves the issue.
change:
branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$')
bran = GitBranch.new(branch_rev[2])
bran.revision = branch_rev[3]
bran.scmid = branch_rev[3]
bran.is_default = ( branch_rev[1] == '*' )
@branches << bran
To:
if branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$')
bran = GitBranch.new(branch_rev[2])
bran.revision = branch_rev[3]
bran.scmid = branch_rev[3]
bran.is_default = ( branch_rev[1] == '*' )
@branches << bran
end
Files
Updated by Go MAEDA about 6 years ago
- Tracker changed from Patch to Defect
- Subject changed from Git commit with multi-line comment on a project with more than one branch breaking parser. to Git commit with multi-line comment on a project with more than one branch breaking parser
- Status changed from Needs feedback to New
- Target version set to 3.4.11
Updated by Go MAEDA about 6 years ago
- Subject changed from Git commit with multi-line comment on a project with more than one branch breaking parser to Multi-line commit message breaks git adapter when parsing branches
Updated by Go MAEDA about 6 years ago
- Subject changed from Multi-line commit message breaks git adapter when parsing branches to Garbage lines in the output of 'git branch' break git adapter
- Status changed from New to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Actions